Skip to content

Commit

Permalink
Fix spec and remove usless order spec
Browse files Browse the repository at this point in the history
  • Loading branch information
tmtrademarked committed Oct 17, 2022
1 parent 3386301 commit c6cd7e0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion core/spec/models/spree/order_credit_sorter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
end

it 'invokes the default sorting order' do
expect(credits).to receive(:in_priority_order)
expect(credits).to receive(:order_by_priority)
subject
end
end
Expand Down
4 changes: 0 additions & 4 deletions core/spec/models/spree/order_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1361,10 +1361,6 @@ def generate
expect(primary_payment.amount).to eq(order_total - amount_difference)
expect(secondary_payment.amount).to eq(amount_difference)
end

it 'creates a new prioritizer' do
expect(Spree::Config.order_credit_sorter_class).to have_received(:new).with(order)
end
end
end
end
Expand Down

0 comments on commit c6cd7e0

Please sign in to comment.