spec/support/users.rb in marty-2.9.3 vs spec/support/users.rb in marty-3.0.0

- old
+ new

@@ -9,10 +9,10 @@ user.firstname = user.login = username user.lastname = username user.active = true user.save - role = Marty::Role.find_by_name(role_name.to_s) + role = Marty::RoleType[role_name.to_s] raise "Oops unknown role: #{role_name}. Was db seeded?" unless role user_role = Marty::UserRole.new user_role.user = user