In my actual project I use the following gems for testing: capybara from git://github.com/jnicklas/capybara.git in revision 6641fddcfc337a3ddaa84ac59272e884090332c3
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:
#rspec test code @room = FactoryGirl.build(:room) #factory definition factory :room do length {10} width {2开发者_开发问答0}
My problem is with calling old aliased method in Test environment. Probably only with Factory Girl app/models/user.rb
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
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
I have several rspec tests that use Factory_girl. It is used on MongoDB with MongoId in a Rails 3 app.
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
im have model Category. class Category < ActiveRecord::Base has_ancestry 开发者_JAVA百科:cache_depth => true, :depth_cache_column => :depth
I have these models that I\'m trying to create factories for using factory_girl. class Foo < ActiveRecord::Base