[rspec-users] My first tests, backwards. Please help
lists at ruby-forum.com
Wed Dec 31 13:46:49 EST 2008
I hope to be on my feet after a few more basic questions..
> Take a look at these:
Deciding on factory_girl due to it's popularity, I wrote a factories
# This will guess the User class
Factory.define :user do |u|
u.email 'john at pandawin.com'
u.register! # do these work?
== but the test still gets 'quentin' from the bort fixtures for user 1
require File.dirname(__FILE__) + '/../spec_helper'
require 'factory_girl' # don't know if this works
Do I need to require the file like the spec_helper for factory_girl?
For instance, will you write a simple case that puts the factory user id
and login? I think that would help a lot.
Also, your patience is appreciated. I may have a New years resolution
knocked out before the year starts :-)
Posted via http://www.ruby-forum.com/.
More information about the rspec-users