spork Questions
2
Solved
I've followed the spork railscast video and it gives me the following error when I try to run guard:
Guard is now watching at '/Users/m/work/'
Starting Spork for Test::Unit & RSpec
Couldn't f...
Emmett asked 18/11, 2011 at 3:19
2
Solved
I use spork with Guard + Rspec but the debugger doesn't work as expected:
I added require 'spork/ext/ruby-debug' just after the require 'spork'
it properly stops on debugger breakpoints...
... bu...
Aquacade asked 16/11, 2011 at 8:34
4
Solved
Rake tasks suffer from the same problem as running tests: the Rails bootup process takes a long time before the task is even running.
Is there a way to integrate spork and rake together?
Ogletree asked 30/9, 2011 at 18:36
2
I have the following spec_helper.rb file in my Rails 3.1 application. I am using Spork to load the environment faster for testing. All my tests worked prior to adding Spork to the mix. After adding...
Thun asked 29/9, 2011 at 19:3
3
It seems like my helpers (and sometimes my models) aren't being reloaded on each run with Spork. What should I be putting into my "Spork.each_run" block?
Arbitrate asked 28/11, 2011 at 22:48
2
Solved
I'm following along with the Ruby on Rails Tutorial.
Things are working pretty well, but I noticed that Guard only runs after I save some files (view or controller files), but doesn't run when I sa...
Photometer asked 1/2, 2012 at 20:6
2
Solved
I just installed the SimpleCov gem to generate code coverage reports on my Rails 3.2.6 app, and it works great with RSpec, just not with Spork. I am able to get the desired correct report by runnin...
Crelin asked 7/7, 2012 at 18:10
4
Solved
If I am using spork in my rails project and have a spec_helper.rb file like this
require 'spork'
Spork.prefork do
...
end
Spork.each_run do
...
end
Does it mean I need to ALWAYS have spork r...
Borborygmus asked 19/11, 2011 at 7:33
3
Solved
I'm running rspec with spork and I can't get a file in lib to reload on consecutive rspec runs. I've tried require'ing the file in 'Spork.each_run'
I'm not getting any responses, so I'll try to ex...
Hebert asked 27/8, 2011 at 4:12
4
Solved
I can not figure out how to get spork not to load all of my app models. Testing changes to my models is greatly slowed down as I am unable to use spork to help. This is what I get when I debug what...
3
Autotest increases the speed at which tests run by running only the changed tests.
But I want to push it even further by using spork to preload the Rails environment, so that I will get even fast...
Overtop asked 25/11, 2010 at 7:9
1
Solved
I've got existing rspecs and cucumber features all running fine.
I'm installing spork (spork-rails in fact) to give me some re-run speed up.
I've got rspec running fine with spork.
I've just mod...
Musso asked 28/5, 2012 at 11:23
2
Solved
I'm using spork to test a Sinatra application and with Ruby 1.9.2 the tests run in about 3.5 seconds but in Ruby 1.8.7 they average 1.2 seconds. I did try Ruby 1.9.3 and even JRuby but they had som...
Discipline asked 7/12, 2011 at 22:5
1
Solved
I'm running rspec on a rails 3.0 environment. We've just switched to using sqlite3 in memory database for tests.
To get this to work, you need to load the schema each run.
The trouble with this i...
Asiatic asked 15/9, 2011 at 3:19
2
Solved
So on a Rails 3.0.9 app I'm using Spork/Guard/RSpec/FactoryGirl on 1.9.2.
I would like to know how can I get Spork/Guard to automatically update my factories and locales.
Tremble asked 23/7, 2011 at 17:56
2
Solved
I have a problem when running all of my specs.
ActiveRecord::AssociationTypeMismatch:
Affiliate(#2154746360) expected, got Affiliate(#2199508660)
It would appear that my models are being load...
Pappas asked 1/4, 2011 at 22:13
1
Solved
If I'm in a rails project, editing with rails.vim, how can I get :Rake to run the specs through Spork?
Its largely just a matter of making :Rake aware of the project's specs/spec.opts file via th...
React asked 28/2, 2011 at 1:58
2
Solved
when I run rspec spec/models result is OK.
But when I use spork, every test where shoulda macros (like it { should validate_presence_of(:title) } is used FAILS with error like: undefined method 'v...
Mither asked 8/10, 2010 at 20:53
© 2022 - 2024 — McMap. All rights reserved.