I have the following factories: Factory.define :email do |email| email.email {\"infomcburney.cowan.com\"}
I am working with FactoryGirl for the first time and have set up my tests for the following controlle开发者_如何转开发r code
I\'m using Rails 3 / factory_girl_rails / Rspec 2 and Ruby 1.8 I\'ve defined my factories this way: Factory.define :user do |u|
Many programmers use devise as their authentication solution and I 开发者_StackOverflow社区would like to get their advice:
I\'m using Factory Girl/Rspec2/Rails 3. In factories.rb, I have: Factory.define :user do |user| user.name\'Some guy\'
I am writing an rspec for an address model that has a polymorphic attribute called :addressable.I am using factory girl for testing.
I\'m attempting to follow railstutorial.org, and am currently on Chapter 7, where you start using factories: http://railstutorial.org/chapters/modeling-and-viewing-users-two#sec:tests_with_factories
I\'m running rails 3.0, rspec 2.0 and factory_girl. Here is the simplified scenario I\'m working with: a user can subscribe to only one plan at a time
My tests work fine when I\'m testing them individually, rake cucumber FEATURE = \'path/to/feature\' but when I try to run
I am writing some tests with RSpec for a Ruby on Rails application and am running into an issue I can\'t seem to figure out. I have a bunch of objects that are associated with others and I\'m using Fa