Displaying 1 result from an estimated 1 matches for "user_with_same_email".
2012 May 24
0
Ruby on Rails Tutorial Chapter 6 RSpec tests failing
...Fo@public.gmane.org A_US-ER@f.b.org frst.lst-CfcPUM2A7yk@public.gmane.org a
+b@baz.cn]
addresses.each do |valid_address|
@user.email = valid_address
@user.should be_valid
end
end
end
describe "when email address is already taken" do
before do
user_with_same_email = @user.dup
user_with_same_email.email = @user.email.upcase
user_with_same_email.save
end
it { should_not be_valid }
end
describe "when password is not present" do
before { @user.password = @user.password_confirmation = " " }
it { should_not be_...