lib/voluntary/test/rspec_helpers/factories.rb in voluntary-0.4.0 vs lib/voluntary/test/rspec_helpers/factories.rb in voluntary-0.5.0

- old
+ new

@@ -12,20 +12,9 @@ country 'Germany' language 'en' interface_language 'en' password 'password' password_confirmation { |u| u.password } - - #after_create do |user| - # User.confirm_by_token(user.confirmation_token) - #end - - factory :master_user do - after_create do |user| - role = Role.find_or_create_by(name: 'Master') - user.roles << role - end - end end factory_girl.factory :area do sequence(:name) { |n| "area #{n}" } end \ No newline at end of file