spec/factories/user.rb in paid_up-0.13.5 vs spec/factories/user.rb in paid_up-0.13.6

- old
+ new

@@ -3,14 +3,14 @@ FactoryBot.define do factory :user do sequence :email do |n| "#{name.tr(' ', '.').downcase}#{n}@example.com" end - password 'password' - password_confirmation 'password' + password { 'password' } + password_confirmation { 'password' } transient do plan { PaidUp::Plan.all.sample } - past_due false + past_due { false } end # the after(:create) yields two values; the user instance itself and the # evaluator, which stores all values from the factory, including transient # attributes; `create_list`'s second argument is the number of records # to create and we make sure the user is associated properly to the post