Re: [rspec-users] Validation Failed: Userkey has already been taken, Email has already been taken

2013-02-28 Thread David Chelimsky
On Thu, Feb 28, 2013 at 12:57 PM, ruby rails wrote: > Hi, > > I am using Factory girl with rspec and capybara for testing my rails > appliction. I have the below code > FactoryGirl.define do > factory :user do |f| > f.email "s...@gmail.com" > f.userkey "12ssd345q62" > end > end > > When I

[rspec-users] Validation Failed: Userkey has already been taken, Email has already been taken

2013-02-28 Thread ruby rails
Hi, I am using Factory girl with rspec and capybara for testing my rails appliction. I have the below code FactoryGirl.define do factory :user do |f| f.email "s...@gmail.com" f.userkey "12ssd345q62" end end When I run the test it is failing as "Validation Failed: Userkey has already been

Re: [rspec-users] uninitialized constant Factory (NameError)

2013-02-28 Thread David Chelimsky
See https://github.com/thoughtbot/factory_girl/blob/master/GETTING_STARTED.md It's FactoryGirl, not Factory (which used to be the correct constant, but is no longer). On Thu, Feb 28, 2013 at 8:44 AM, ruby rails wrote: > I have installed factory_girl_rails gem in Gemfile for both test as well > a

[rspec-users] uninitialized constant Factory (NameError)

2013-02-28 Thread ruby rails
I have installed factory_girl_rails gem in Gemfile for both test as well as development. And in the password_rest_spec file I have given require 'spec_helper' describe "PasswordResets" do it "emails when user requesting password reset" do user = Factory(:user) #forget_pwd.userid.should ==