factory_bot_rails: ArgumentError with Rails 5.1

After update for Rails version 5.1 I get strange error:

ArgumentError: wrong number of arguments (given 1, expected 0)

My Gemfile have this changes:

...
gem 'rails', github: 'rails/rails'
gem 'arel', github: 'rails/arel'
...

The error happen when I try use:

FactoryGirl.create :user, :confirmed

Maybe an error in Rails 5.1.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 15 (3 by maintainers)

Most upvoted comments

@brunowego Hi, I faced the same problem, but after upgrading bullet from 5.5.0 to 5.5.1, it becomes fine.

Can confirm, saw the same thing in 5.1.0.beta1, but also with other numbers of arguments (e.g., given 3, expected 4).