Project

General

Profile

« Previous | Next » 

Revision e0910b7e

Added by Michael Moll almost 6 years ago

Fixes #23857 - Fix Performance/InefficientHashSearch cop

View differences:

test/models/concerns/exportable_test.rb
end
test '#exportable_attributes does not include child class attrs' do
refute SampleSubnet.exportable_attributes.keys.include?('domain')
refute SampleSubnet.exportable_attributes.key?('domain')
end
test '#to_export includes own class exportables' do
assert @subnet_domain.to_export.keys.include?('domain')
assert @subnet_domain.to_export.key?('domain')
end
end

Also available in: Unified diff