jstorimer / spin

Spin speeds up your Rails testing workflow by preloading your Rails environment.

Home Page:http://jstorimer.github.com/spin/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Does it work with RSpec?

sgruhier opened this issue · comments

I have an error but before sharing it just wanted to be sure that RSpec is compatible with spin

I haven't tested spin with RSpec. Please share.

I just did a spin serve
and spin push spec/models/user_spec.rb

And I got
`require': no such file to load -- spec_helper (LoadError)

Sounds like the same issue as #1

@sgruhler, how are you requiring spec_helper? We use:

require 'spec/spec_helper'

...in all our test files, regardless of it's location within the spec folder or how deep it's nested.

I did not have the same error with rspec (2.6.0) as sgruhler. It just doesn't run any tests:

Loading spec/models/version_spec.rb
Loaded suite /Users/tharvey/.rvm/gems/ree-1.8.7-2011.03@viper/bin/spin
Started

Finished in 0.000132 seconds.

0 tests, 0 assertions, 0 failures, 0 errors

I'm thrilled at your work on spin as Spork has been a source of frustration due to the reasons you mention in the README.

my rrequire is

require 'spec_helper'

(rspec 2.6.0 too)

some with me, just does not runs any specs ...

Version 0.1.1 should be compatible with rspec2. I confirmed that it fixes both problems (missing spec_helper and missing output).

thanks!
it works

Thanks @jstorimer! Works nicely.