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

Doesn't play well with FactoryGirl? #17

Open
jmuheim opened this issue Jul 15, 2012 · 0 comments
Open

Doesn't play well with FactoryGirl? #17

jmuheim opened this issue Jul 15, 2012 · 0 comments

Comments

@jmuheim
Copy link

jmuheim commented Jul 15, 2012

When adding the gem to my Gemfile and restarting Guard, I get this:

WARNING: Global access to Rake DSL methods is deprecated.  Please include
    ...  Rake::DSL into classes and modules which use the Rake DSL methods.
WARNING: DSL method #<FactoryGirl::Declaration::Implicit:0x007fe8255310c8>#task called at /Users/josh/Documents/Work/MuheimWebdesign/tttt/spec/factories/positions.rb:5:in `block (2 levels) in <top (required)>'
WARNING: Global access to Rake DSL methods is deprecated.  Please include
    ...  Rake::DSL into classes and modules which use the Rake DSL methods.
WARNING: DSL method #<FactoryGirl::Declaration::Implicit:0x007fdb19f18370>#task called at /Users/josh/Documents/Work/MuheimWebdesign/tttt/spec/factories/positions.rb:5:in `block (2 levels) in <top (required)>'

And when running my specs (which pass withouth guard-rake), I get errors like this:

     Failure/Error: let(:position) { create :position, name: 'Read some books', :task => nil }
     ArgumentError:
       Trait not registered: class

What's happening? I think I already used guard-rake in a FactoryGirl project before when this didn't happen...

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

1 participant