spork Questions

4

Suppose there's the following class # derp.rb class Derp < Struct.new :id end When I load "./derp.rb" twice the program fails with TypeError: superclass mismatch for class Derp. Ok, this coul...
Ruysdael asked 20/3, 2012 at 11:14

2

Solved

My rspec tests seem to run extremely slow even with guard & spork. Finished in 5.36 seconds 13 examples, 2 failures I understand that there are several things I can do to optimize my tests ...

2

Solved

I'm having trouble with PaperTrail (auto-versioning of objects for Rails) being used with RSpec tests. Normally I want my tests to run without PaperTrail versioning, but there are a handful of test...
Gissing asked 8/10, 2013 at 19:39

4

I'm using RSpec for testing and when I left work Friday afternoon, my tests were passing. But when I went home and synced my repository, the tests failed on my laptop. Now back at work, the tests a...
Laure asked 13/12, 2010 at 13:3

2

Solved

I'm trying to load up console to interact with some of my rspec mocking helpers. I expected that running script/console test would load an env similar to when I run spec. However, this doesn't appe...
Chicalote asked 7/6, 2010 at 4:7

2

Solved

I have spork running to speed up my tests but there is no output when I run them. Is there a configuration that I need to modify?
Aboulia asked 7/3, 2014 at 0:57

5

Solved

I'm running spork and guard and all has been going very well with my RSpec tests which were all run correctly. In order to speed up the tests I could successfully filter my RSpec tests with tags I ...
Lornalorne asked 8/2, 2012 at 12:15

3

Solved

I have an rspec spec: require "spec_helper" describe ApplicationHelper do describe "#link_to_cart" do it 'should be a link to the cart' do helper.link_to_cart.should match /.*href="\/cart".*/ ...
Rochette asked 16/4, 2013 at 14:8

3

I'm trying to figure out how to get RubyMine's console to send messages to growl. Specifically, since I run Rspec & Spork through RubyMine, I'd like to get Growl notifications of how many tests...
Zapata asked 13/4, 2011 at 19:22

5

Solved

Im using spork 0.9.2 and rspec 3.0.0. When trying to run test rspec --drb I have an exception C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/spork-0.9.2/lib/spork/test_framework/rspec.rb:11:...
Puente asked 4/6, 2014 at 6:53

6

Solved

I have a spork gem issue. Every time I run the spork command I get this long error: evan@TheBeast-Computer:~/rails_projects/sample_app$ spork Using RSpec Preloading Rails environment Loading Spork...
Risa asked 12/6, 2012 at 0:40

2

Solved

When i run my rspec tests with spork, every time i use capybara's save_and_open_page, spork is loosing the test suite.. or maybe doesnt output anything anymore... See the log # => without save...
Incendiarism asked 9/4, 2013 at 7:10

1

Solved

Now with Spring built-in with rails 4.1, I am curious about why the dev-team chose Spring over the others (Zeus and Spork). Why did they choose Spring?
Ticklish asked 14/4, 2014 at 21:8

4

Solved

I've been using Michael Hartl's Rails Tutorial to pick up Ruby on Rails and have recently been going through the new Rails 4.0 version of the tutorial. I've encountered an issue with Spork; I know ...
Demurrer asked 26/6, 2013 at 4:17

3

Solved

I have guard-spork running on my rails 3.2.11 project on Ubuntu 12.04. I got my configuration from railstutorial.org. Spork starts, then guard says it can't find spork to start, waits 30 secs, th...
Merriment asked 9/2, 2013 at 21:46

6

Solved

im working on ruby.railstutorial.org/ruby-on-rails-tutorial-book. Im using rails 3.2.7, spork, rspec, capybara, launchy and some guards :) i have a really weird problem in Chapter 3 with testing: ...
Premillenarian asked 30/7, 2012 at 17:14

7

Solved

I am using following gems and ruby-1.9.3-p194: rails 3.2.3 rspec-rails 2.9.0 spork 1.0.0rc2 guard-spork 0.6.1 Full list of used gems is available in this Gemfile.lock or Gemfile. And I am u...
Aggravation asked 24/4, 2012 at 9:44

2

Solved

When attempting to follow example on database_cleaner's GitHub page, I encountered the following error from RSpec: ActiveRecord::StatementInvalid: SQLite3::SQLException: cannot start a transacti...
Tartary asked 31/8, 2012 at 18:39

2

Solved

In my Gemfile... group :development, :test do gem 'capybara', "1.1.2" gem 'database_cleaner', "0.7.0" gem 'cucumber', "1.1.2" gem 'cucumber-rails', "1.2.0" gem 'rspec-rails', "2.7.0" gem ...
Redintegrate asked 19/4, 2012 at 0:44

4

I have followed this tutorial on speeding up rspec with spork, and I am on a win7 x64 box with ruby 1.9.2 and rails 3.2.5. Everything is working, but test still execute slowly. Does spork simply no...
Synergist asked 19/6, 2012 at 9:42

3

Solved

Here's the problem. When added the Guard gem everything was fine when I was calling Guard. When I added Spork, I get the following error that doesn't affect testing my tests but it brings it up eve...
Hadleigh asked 29/1, 2013 at 19:8

3

Solved

I've got a problem with Spork test server. If I set config.cache_classes = false in config/environments/test.rb then specs start to rasie errors. Failure/Error: task = Factory(:something, :foo =...
Functional asked 6/5, 2011 at 15:1

4

Solved

I've been using spork all day, and most of the time it is a really great. However, I am often running into a few problems where I need to restart Spork in order for my tests to pass... and now I'm...
Stereopticon asked 2/5, 2011 at 9:37

3

Solved

Background: I am using the RailsInstaller 2 package from Engine Yard, which means Ruby 1.9.2-p290 and Rails 3.1.1, on Windows 7 x64. Problem: While attempting the Ruby on Rails Tutorial and afte...
Seat asked 18/1, 2012 at 7:55

3

Solved

I have a application that is using rails 3.2.3 and spork 1.0.0rc2. When I run my cucumber test I get: ActionView::Template::Error: undefined local variable or method `page_title' Where page_tit...
Margoriemargot asked 18/4, 2012 at 20:50

© 2022 - 2024 — McMap. All rights reserved.