Skip to content

Commit

Permalink
Adds and changes tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aplegatt committed Nov 25, 2020
1 parent 7b5d188 commit 66250fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/features/confirmation_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
RSpec.feature 'Confirmation', type: :feature, reload_user: true do
before do
set_confirmable_option(true)
Spree::UserMailer.stub(:confirmation_instructions).and_return(double(deliver: true))
expect(Spree::UserMailer).to receive(:confirmation_instructions).with(anything, anything, { current_store_id: Spree::Store.current.id }).and_return(double(deliver: true))
end

after(:each) { set_confirmable_option(false) }
Expand Down
2 changes: 1 addition & 1 deletion spec/models/user_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
describe "confirmable", reload_user: true do
it "is confirmable if the confirmable option is enabled" do
set_confirmable_option(true)
Spree::UserMailer.stub(:confirmation_instructions).and_return(double(deliver: true))
Spree::UserMailer.stub(:confirmation_instructions).with(anything, anything, { current_store_id: Spree::Store.current.id }).and_return(double(deliver: true))
expect(Spree.user_class.devise_modules).to include(:confirmable)
set_confirmable_option(false)
end
Expand Down

0 comments on commit 66250fb

Please sign in to comment.