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/organizations_controller_test.rb
test "search organization" do
organization = Organization.first
get :index, params: { :search => "name = \"#{organization.name}\"", :format => 'json' }
get :index, params: { :search => "name = \"#{organization.name}\"", :format => 'json' }
assert_response :success, "search organization name: '#{organization.name}' failed with code: #{@response.code}"
response = JSON.parse(@response.body)
assert_equal response['results'].length, 1

Also available in: Unified diff