factory-bot
no such file to load -- rspec/matchers - rspec-rails, shoulda, cucumber, factory girl, Rails2.3.10
I\'ve inherited an old Rails2.3 app. It\'s very complex and has (shock, horror) no tests whatsoever. I\'m used to rspec and cucumber so I thought I\'d start working on getting specs and features defin[详细]
2023-03-10 03:53 分类:问答extending factory_girl
I found g开发者_StackOverflow社区ood solution, with factory_girl extension here: Using factory_girl in Rails with associations that have unique constraints. Getting duplicate errors[详细]
2023-03-07 18:37 分类:问答How come Factory Girl isn't sequencing unique attributes?
My controll开发者_开发知识库er spec fails because Factory Girl seems to be creating non-unique Users even though I sequence the User attributes that need to be unique.[详细]
2023-03-07 11:59 分类:问答rails3, rspec2 ActiveRecord#changes error in specs
I\'m upgrading my rails 2 app to rails 3. I use rspec, shoulda and factory girl in the test suite. One particular pattern is causing an error I\'m having a really hard time both researching and solvi[详细]
2023-03-07 06:47 分类:问答factory_girls sequence and uniqueness
I have this setup in the factories开发者_如何学编程.rb. Factory.sequence(:email) { |n| \"email#{n}@factory.com\" }[详细]
2023-03-06 04:55 分类:问答Dependent factories in Factory Girl
I have 2 factories. Beta_user and Beta_invite. Basically before a Beta_user can validly save I have to create an entry of Beta_invite. Unfortunately these models don\'t have clean associations, but th[详细]
2023-03-06 03:48 分类:问答Factory Girl - has many associations
I\'m using factory girl with rspec, here is what I have: factories.rb Factory.define :user do |f| f.sequence(:fname) { |n| \"fname#{n}\" }[详细]
2023-03-05 18:04 分类:问答Factory Girl, Mongoid, and Embedded Documents
I am setting up my first app with Mongoid and Devise. I am trying to Factory a user in my test with this factory:[详细]
2023-03-05 13:06 分类:问答Factory with carrierwave upload field [duplicate]
This question already has answers here: How Do I Use Factory Girl To Generate A Paperclip Attachment? 开发者_JAVA百科[详细]
2023-03-05 10:32 分类:问答Strange problem with factory girl
I have a model # == Schema Information # # Table name: posts # #id:integernot null, primary key #name:string(255)[详细]
2023-03-04 21:20 分类:问答