spec/factories/users.rb in curation_concerns-0.1.0 vs spec/factories/users.rb in curation_concerns-0.2.0

- old
+ new

@@ -1,14 +1,14 @@ FactoryGirl.define do factory :user do - sequence(:email) {|n| "email-#{srand}@test.com" } + sequence(:email) { |_n| "email-#{srand}@test.com" } password 'a password' password_confirmation 'a password' factory :admin do after(:build) do |user| def user.groups - ["admin"] + ['admin'] end end end factory :jill do @@ -20,9 +20,7 @@ end factory :curator do email 'curator1@example.com' end - end - end