I have two classes and two factories: class User belongs_to :company end class Company has_many :users end
I have the following factories: Factory.define :producer, :class => User do |f| f.sequence(:email) { |n| \"producer_#{n}@shit.com\" }
I have the following method in one of my Rails classes: def human_departure_time \"#{departure_time.strftime(\"%A, %d %B %Y\")} at #{departure_time.strftime(\"%I:%M %p\")}\"
Using RSpec and Factory Girl, I create a record that when created, has associated \'hours\' records automatically created in after_create.
Working with RSpec & Capybara, I\'m getting an interesting test failure mode which goes away with a few subtle rearrangements of lines in the test case...stuff that shouldn\'t matter.
I\'ve written a rspec test which adds into my rubric some units. I have two models => Rubric and Units. Rubrics have many units.
I am getting the following failure from one of my tests. Failures: 1) InstrumentController POST create with valid params creates a new Instrument
I\'d like to create two objects that refer to another, single object that I\'ve created in the before(:each) block
Fixed. There was a bug in Rails. See https://github.com/rails/rails/issues/2333 I have a problem with Factory Girl Rails and Rails 3.1.0.rc5
I am in chapter 7 of the railstutorial.org, and the author is starting to explain less and less of the syntax and details of the course.