Displaying 1 result from an estimated 1 matches for "ukzahwcy".
2012 Nov 08
1
validates_uniqueness_of(*attr_names) w scope not working in unit test
...se
def initialize_user
@booboo = FactoryGirl.create(:subdomain, name: "booboo")
@coocoo = FactoryGirl.create(:subdomain, name: "coocoo")
FactoryGirl.create(:user, subdomain_id: @booboo[:id], email:
"user.doe-PV5Ro7/Mrj4@public.gmane.org", password: "UkZaHWcy", password_confirmation:
"UkZaHWcy")
end
def teardown
User.delete_all
Subdomain.delete_all
end
test "should_save_user_with_duplicated_email_in_another_scoped_subdomain"
do
user = FactoryGirl.build(:user, subdomain_id: @coocoo[:id], email:
"user....