I\'m getting some weird validation behavior: it\'s duplicating my validation error messages and I can\'t figure out what\'s causing it... it doesn\'t do this in the rails console.
I have a blueprint: Model.blueprint(:something) do name \"Some name\" context \"some context\" end \"context\" is an attribute of Model, but it is also a reserved word of RSpec. When I try to make
I\'ve run into a very confusing problem... All my tests pass when i run them in isolation. When I run them like rake test, after my integration tests run, Machinist says that it can\'t find blueprint
I have a validates_uniqueness_of validation on my model: #SwimMeetRelayEvent.rb validates_uniqueness_of :event_number_digit, :scope => [:swim_meet_id, :event_number_alpha]
I\'m using Machinist blueprints in development. from development.rb: config.after_initialize do require \'spec/support/blueprints\'
I\'m using Rails 3, machinist 2, cucumber开发者_JAVA百科 and rspec all together and have two blueprints.rb files. One in the spec directory and one in the features/support directory.
In my Rails 3 application, I have a User model with the following fields name: string email: string children: has_many association to another model
Is 开发者_如何学Gothere some configuration in a factory of factory girl/machinist that forces it to create objects with the same factory name just once during test case and return the same instance al
If I want to create and instance using \"create\" build strategy and then want to use \"attributes_for\" build strategy for verification, is it possible to do? And if I use sequences in the factory?开
I want to write an rails integration test (with ActionDispatch::IntegrationTest). I am using devise for authentication and machinist for test models. I cannot successfully sign in.