Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

does not work with shoulda #56

Closed
boblin opened this issue Oct 11, 2010 · 4 comments
Closed

does not work with shoulda #56

boblin opened this issue Oct 11, 2010 · 4 comments

Comments

@boblin
Copy link

boblin commented Oct 11, 2010

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) } are used FAILS with error like: undefined method 'validate_presence_of' for ...

rails (3.0.0)
shoulda (2.11.3)
spork (0.8.4)
rspec-rails (>= 2.0.0.beta.22)

More info here:
http://stackoverflow.com/questions/3894232/rspec-shoulda-and-spork-does-not-work-together

@timcharper
Copy link
Contributor

Looks like stackoverflow community helped solve your problem. Word on using 0.9.0.

@boblin
Copy link
Author

boblin commented Feb 10, 2011

with latest versions of these gems spork works without any problem:
spork (0.9.0.rc3)
rails (3.0.4)
shoulda (2.11.3)
rspec-rails (2.5.0)

@timcharper
Copy link
Contributor

Great, thank you for the report. I'll add your a link to this and your stackoverflow item to the wiki.

@medihack
Copy link

medihack commented Apr 2, 2011

With current shoulda-matchers it is require 'shoulda/matchers/integrations/rspec'

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants