mercredi 26 juillet 2017

factory error in raills

An error occurred in a before(:suite) hook. Failure/Error: FactoryGirl.lint

FactoryGirl::InvalidFactoryError: The following factories are invalid:

  • invoice - nil can't be coerced into Fixnum (TypeError)
  • paid_invoice - nil can't be coerced into Fixnum (TypeError)
  • receipt - nil can't be coerced into Fixnum (TypeError)
  • refund_receipt - nil can't be coerced into Fixnum (TypeError)

    /usr/local/rvm/gems/ruby-2.3.0@carve/gems/factory_girl-4.8.0/lib/factory_girl/linter.rb:12:in `lint!'

/usr/local/rvm/gems/ruby-2.3.0@carve/gems/factory_girl-4.8.0/lib/factory_girl.rb:67:in `lint'

./spec/support/factory_girl.rb:13:in `block (2 levels) in '

Finished in 4.11 seconds (files took 3.05 seconds to load) 0 examples, 0 failures, 1 error occurred outside of examples

Aucun commentaire:

Enregistrer un commentaire