factory-bot
Capybara does not find the text that is actually there!
In my actual project I use the following gems for testing: capybara from git://github.com/jnicklas/capybara.git in revision 6641fddcfc337a3ddaa84ac59272e884090332c3[详细]
2023-03-23 13:39 分类:问答Factory Girl after_build callback and overrides issue in rspec
We\'re having a problem with Factory Girl\'s new after_build callback and getting the override parameters to work.we\'ve defined a model as:[详细]
2023-03-22 23:28 分类:问答How to resolve factory_girl wrong number of arguments error
#rspec test code @room = FactoryGirl.build(:room) #factory definition factory :room do length {10} width {2开发者_开发问答0}[详细]
2023-03-22 22:27 分类:问答Ruby, Rails and aliasing - stack too deep problem
My problem is with calling old aliased method in Test environment. Probably only with Factory Girl app/models/user.rb[详细]
2023-03-22 18:42 分类:问答how to use devise current_user inside factory_girl factories
I want to use current_user (of devise) inside the factories I create using factory_girl. My environment contains: Ruby 1.8.7 / Rails 2.3.5 / Devise / Cucumber / Pickle / Factory Girl[详细]
2023-03-22 17:15 分类:问答Creating test objects in RSpec with FactoryGirl fails with Nested Attributes
I have a Workout model that has many PerformedExercises, which has many PeformedSets. I can\'t get it to build an object in my test and I am not sure if it\'s SQLite3, or something else (it works fine[详细]
2023-03-22 04:12 分类:问答How to avoid Persistence of a Factory Girl object
I have several rspec tests that use Factory_girl. It is used on MongoDB with MongoId in a Rails 3 app.[详细]
2023-03-21 19:14 分类:问答How do I mock a devise objects association return values?
I have an Employee model, Client model, and an Office model. Devise is controlling the authentication logic on the Employee. I have multiple controllers which are subclassing a base controller which s[详细]
2023-03-20 17:21 分类:问答Factory_girls and ancestry
im have model Category. class Category < ActiveRecord::Base has_ancestry 开发者_JAVA百科:cache_depth => true, :depth_cache_column => :depth[详细]
2023-03-19 00:14 分类:问答has_many and belongs_to associations in factory_girl
I have these models that I\'m trying to create factories for using factory_girl. class Foo < ActiveRecord::Base[详细]
2023-03-18 06:24 分类:问答