Skip to content

Commit

Permalink
Merge pull request #4925 from nebulab/francescoaiello/fix-duplicate-c…
Browse files Browse the repository at this point in the history
…ontext-naming-in-user-spec

Fix duplicate context name in spec
  • Loading branch information
waiting-for-dev committed Feb 10, 2023
2 parents 32f2513 + 59da17a commit 802317e
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 802317e

Please sign in to comment.