Project

General

Profile

« Previous | Next » 

Revision 9d43fc71

Added by Michael Moll almost 6 years ago

Fixes #19789 - fix Layout/SpaceAroundOperators cop

View differences:

test/controllers/locations_controller_test.rb
user2 = FactoryBot.create(:user, :with_mail)
location = as_admin { FactoryBot.create(:location, :users => [user1, user2]) }
User.any_instance.expects(:expire_topbar_cache).times(2+User.only_admin.count) # 2 users, all admins
User.any_instance.expects(:expire_topbar_cache).times(2 + User.only_admin.count) # 2 users, all admins
put :update, params: { :id => location.id, :location => {:name => "Topbar Loc" } }, session: set_session_user
end

Also available in: Unified diff