Project

General

Profile

« Previous | Next » 

Revision 630061d2

Added by Michael Moll almost 6 years ago

Fixes #19775 - Fix Layout/ExtraSpacing cop

View differences:

test/controllers/api/v2/locations_controller_test.rb
test "should create location with parent" do
parent_id = Location.first.id
post :create, params: { :location => { :name => "Test Location", :parent_id => parent_id } }
post :create, params: { :location => { :name => "Test Location", :parent_id => parent_id } }
assert_response :success
show_response = ActiveSupport::JSON.decode(@response.body)
assert !show_response.empty?

Also available in: Unified diff