-
Notifications
You must be signed in to change notification settings - Fork 52
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
Broaden changes to include factories? #78
Comments
Did you really rewrite it to Also, it's already warned by Transpec: # spec/factories.rb
FactoryGirl.define do
factory :book do
after(:create) do |book|
book.stub(:foo)
end
end
end
By the way, if you had an error while running |
Sorry, it looks like I failed to run the spec. Is it even possible to include or I'd like to disable all the old syntax if possible. |
You can, by including # In spec_helper.rb or somewhere
FactoryGirl::SyntaxRunner.send(:include, RSpec::Mocks::ExampleMethods) However, I think this isn't a well-mannered way since Personally I don't use factory_girl much so I'm not sure that stubbing in the |
Closing since Transpec can do nothing with this. |
Thanks @yujinakayama. |
I came across a factory that needed to be updated:
Easy enough to handle manually or run transpec with a folder. Just thought I'd let you know.
The text was updated successfully, but these errors were encountered: