I have:
RSpec.configure do |config|
config.include FactoryGirl::Syntax::Methods
end
which properly work with simple rspec spec/model/user_spec.rb
(allows me to use create(:user)
, not FactoryGirl.create(:user)
).
But if I use zeus rspec spec/model/user_spec.rb
to speed up my specs, it troughs me an error:
Failure/Error: @user = create(:user)
NoMethodError:
undefined method `create' for #<RSpec::Core::ExampleGroup::Nested_2::Nested_1:0x007fc8618e4960>
How I can use this syntax with zeus?
zeus rake spec
works fine for me, with factory girl. – Wyne