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
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
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
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 ==