Skip to content

Commit

Permalink
Fix duplicate context name in spec
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancescoAiello01 committed Feb 8, 2023
1 parent 1050ca0 commit 59da17a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/spec/models/spree/user_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@
stub_spree_preferences(completable_order_created_cutoff_days: 1)
end

it "excludes orders updated outside of the cutoff date" do
it "excludes orders created outside of the cutoff date" do
create(:order, user: user, created_by: user, created_at: 3.days.ago, updated_at: 2.days.ago)
expect(user.last_incomplete_spree_order).to eq nil
end
end

context "with completable_order_created_cutoff set" do
context "with completable_order_updated_cutoff set" do
before do
stub_spree_preferences(completable_order_updated_cutoff_days: 1)
end
Expand Down

0 comments on commit 59da17a

Please sign in to comment.