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/api/v2/usergroups_controller_test.rb
end
test "should update usergroup with usergroup" do
usergroup = FactoryBot.create(:usergroup)
usergroup = FactoryBot.create(:usergroup)
put :update, params: { :id => @usergroup.to_param, :usergroup => valid_attrs.clone.update(:usergroup_ids => [usergroup.id]) }
assert_response :success
assert_equal JSON.parse(@response.body)["usergroups"][0]["name"], usergroup.name, "Can't update usergroup with user #{usergroup}"

Also available in: Unified diff