Project

General

Profile

« Previous | Next » 

Revision 912cd57d

Added by Tomer Brisker almost 6 years ago

Fixes #24117 - Correct test for core change

View differences:

test/models/activation_key_test.rb
test 'should audit when a host_collection is added to a activation_key' do
recent_audit = @sample_key.audits.last
audited_changes = recent_audit.audited_changes[:host_collections]
audited_changes = recent_audit.audited_changes[:host_collection_ids]
assert audited_changes, 'No audits found for activation_keys'
assert_empty audited_changes.first
assert_equal @host_collection.name, audited_changes.last
assert_equal [@host_collection.id], audited_changes.last
end
end
end

Also available in: Unified diff