Revision 630061d2
Added by Michael Moll almost 6 years ago
test/controllers/api/v2/smart_proxies_controller_test.rb | ||
---|---|---|
put :update, params: { :id => smart_proxies(:one).to_param, :smart_proxy => valid_attrs }
|
||
assert_response :success
|
||
response = JSON.parse(@response.body)
|
||
refute_empty response.keys.select { |key| any_needed_fields.include?(key) }
|
||
refute_empty response.keys.select { |key| any_needed_fields.include?(key) }
|
||
end
|
||
|
||
test_attributes :pid => '42d6b749-c047-4fd2-90ee-ffab7be558f9'
|
||
... | ... | |
put :update, params: { :id => smart_proxies(:one).to_param, :smart_proxy => valid_attrs }
|
||
assert_response :success
|
||
response = JSON.parse(@response.body)
|
||
refute_empty response.keys.select { |key| any_needed_fields.include?(key) }
|
||
refute_empty response.keys.select { |key| any_needed_fields.include?(key) }
|
||
end
|
||
|
||
test_attributes :pid => 'f279640e-d7e9-48a3-aed8-7bf406e9d6f2'
|
Also available in: Unified diff
Fixes #19775 - Fix Layout/ExtraSpacing cop