Closed Fire-Dragon-DoL closed 10 years ago
Sorry. This one has slipped my eyes, I will take a look at it.
No problem, thanks for watching at it
It seems like you are using AR incorrect: You can't use #build
on the class. #build
is ment to be used on associated children.
You can probably get what you want by changing MyModel.build(mid: identifier)
to MyModel.create(mid: identifier)
or MyModel.new(mid: identifier)
As stated in the title, if I run
MyModel.build(name: 'test')
I get an error:My class is this:
Model is quite simple, I tested even with
:database => :pretend_success
but same error.I'm on rails 4.0.2, I would like to help but I'm having a lot of troubles setting up the test suite for the gem :\