DEV: Remove unsued option from spec.

This commit is contained in:
Guo Xiang Tan 2019-05-09 17:02:32 +08:00
parent f3a346464e
commit d110f252bb
1 changed files with 3 additions and 3 deletions

View File

@ -190,7 +190,7 @@ describe Wizard::StepUpdater do
context 'dark theme' do context 'dark theme' do
it "creates the theme" do it "creates the theme" do
updater = wizard.create_updater('colors', theme_previews: 'Dark', allow_dark_light_selection: true) updater = wizard.create_updater('colors', theme_previews: 'Dark')
expect { updater.update }.to change { Theme.count }.by(1) expect { updater.update }.to change { Theme.count }.by(1)
@ -203,7 +203,7 @@ describe Wizard::StepUpdater do
context 'light theme' do context 'light theme' do
it "creates the theme" do it "creates the theme" do
updater = wizard.create_updater('colors', allow_dark_light_selection: true) updater = wizard.create_updater('colors', {})
expect { updater.update }.to change { Theme.count }.by(1) expect { updater.update }.to change { Theme.count }.by(1)
@ -218,7 +218,7 @@ describe Wizard::StepUpdater do
context "without an existing scheme" do context "without an existing scheme" do
it "creates the scheme" do it "creates the scheme" do
ColorScheme.destroy_all ColorScheme.destroy_all
updater = wizard.create_updater('colors', theme_previews: 'Dark', allow_dark_light_selection: true) updater = wizard.create_updater('colors', theme_previews: 'Dark')
updater.update updater.update
expect(updater.success?).to eq(true) expect(updater.success?).to eq(true)
expect(wizard.completed_steps?('colors')).to eq(true) expect(wizard.completed_steps?('colors')).to eq(true)