We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Sometimes I forget to pass in the count attribute for create_list (eg. when I change create to create_list and I forget to add the count):
create_list
create
create_list(:user, profile: profile)
The error in this case is:
Failure/Error: create_list(:user, profile: profile) NoMethodError: undefined method `times' for #<Hash:0x007fda3bd50738> # /Users/tejas/.rvm/gems/ruby-2.3.0@oudux/gems/factory_girl-4.5.0/lib/factory_girl/strategy_syntax_method_registrar.rb:28:in `block in define_list_strategy_method'
I feel this error should be a little more elaborate saying something like the create_list method expects a count.
FactoryGirl version in use here: 4.5.0
4.5.0
The text was updated successfully, but these errors were encountered:
Agreed 👍
Sorry, something went wrong.
Add error message when count is missing for create_list
54e1d06
Closes thoughtbot#889 `create_list` was failing abruptly if the second argument was not count. Give a descriptive error message for this case.
f24e105
8a65569
Closes #889 `create_list` was failing abruptly if the second argument was not count. Give a descriptive error message for this case.
No branches or pull requests
Sometimes I forget to pass in the count attribute for
create_list
(eg. when I changecreate
tocreate_list
and I forget to add the count):The error in this case is:
I feel this error should be a little more elaborate saying something like the
create_list
method expects a count.FactoryGirl version in use here:
4.5.0
The text was updated successfully, but these errors were encountered: