Skip to content

Commit

Permalink
Remove Settings.product.transformation - add missing specs
Browse files Browse the repository at this point in the history
this is a spec for 0f14276
  • Loading branch information
himdel committed Aug 9, 2018
1 parent 332cd7c commit 017d981
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 017d981

Please sign in to comment.