machinist
Rails 3: Duplicate validation error messages during testing
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.[详细]
2023-04-06 21:09 分类:问答Machinist + RSpec and reserved words
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[详细]
2023-03-30 04:32 分类:问答Machinist + Cabybara + Test::Unit = blueprints missing
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[详细]
2023-03-14 18:25 分类:问答validates_uniqueness_of failing with tests, machinist
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][详细]
2023-03-14 06:47 分类:问答discrepancy between requiring a path in rails console vs. rails s (WeBRICK)
I\'m using Machinist blueprints in development. from development.rb: config.after_initialize do require \'spec/support/blueprints\'[详细]
2023-02-28 02:39 分类:问答can cucumber and rspec use the same blueprints.rb file
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.[详细]
2023-02-15 06:02 分类:问答Using machinist instead of fixtures
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[详细]
2023-01-30 06:05 分类:问答Singleton factories in factory_girl/machinist?
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[详细]
2023-01-28 04:46 分类:问答Is there a way in factory_girl to get attributes_for and create for the same instance element?
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?开[详细]
2023-01-27 21:39 分类:问答Rails integration test with the devise gem
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.[详细]
2023-01-27 09:34 分类:问答