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/images_controller_test.rb
test "should list json images" do
# This value is tested by the deprecation warning in application_controller
# so we need to set it or the test will crash
request.env['REQUEST_URI']="compute_resources/#{@image.compute_resource_id}/images"
request.env['REQUEST_URI'] = "compute_resources/#{@image.compute_resource_id}/images"
get :index, params: { :format => :json, :compute_resource_id => @image.compute_resource_id, :operatingsystem_id => @image.operatingsystem_id, :architecture_id => @image.architecture_id }, session: set_session_user
assert_response :success
body = JSON.parse(response.body)

Also available in: Unified diff