diff --git a/test/unit/tasks/seeds_test.rb b/test/unit/tasks/seeds_test.rb index 7cc880783be..7e5e3b14849 100644 --- a/test/unit/tasks/seeds_test.rb +++ b/test/unit/tasks/seeds_test.rb @@ -240,7 +240,7 @@ def seed(*seed_files) end test 'does not change value for existing setting' do - Setting[:instance_id] = Foreman.uuid + Setting.create(name: 'instance_id', value: Foreman.uuid) Setting.expects(:[]=).with(:instance_id, anything).never seed('190-instance_id.rb') end