test/dummy/test/unit/permissions_test.rb in trust-0.8.3 vs test/dummy/test/unit/permissions_test.rb in trust-1.4.2

- old
+ new

@@ -25,10 +25,10 @@ require 'test_helper' class PermissionsTest < ActiveSupport::TestCase setup do def login_as(role) - Trust::Authorization.user = @user = User.find_or_create_by_name(role) + Trust::Authorization.user = @user = User.find_or_create_by(name: role) end end context 'Client' do should 'be managed by system admins' do login_as(:system_admin)