Skip to content

Commit

Permalink
Merge pull request ManageIQ#249 from himdel/product-trans-spec
Browse files Browse the repository at this point in the history
Remove Settings.product.transformation - add missing specs
  • Loading branch information
Fryguy authored Aug 9, 2018
2 parents 5133829 + 017d981 commit ef12004
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
require_migration

describe RemoveTransformationProductSetting do
let(:settings_change_stub) { migration_stub(:SettingsChange) }

migration_context :up do
it "removes the /product/transformation key" do
setting_changed = settings_change_stub.create!(:key => "/product/transformation", :value => true)
setting_ignored = settings_change_stub.create!(:key => "/product/magic", :value => true)

migrate

expect { setting_changed.reload }.to raise_error(ActiveRecord::RecordNotFound)
expect(setting_ignored.reload.value).to eq(true)
end
end
end

0 comments on commit ef12004

Please sign in to comment.