Skip to content

Commit

Permalink
Remove unnecessary 'promotion doesn't include item involved' test
Browse files Browse the repository at this point in the history
This is tested by the Promotion::Rules::Product tests
  • Loading branch information
radar committed Oct 21, 2013
1 parent 26f2b58 commit f237364
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions core/spec/models/spree/promotion_handler/cart_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,6 @@ module PromotionHandler
include_context "creates the adjustment"
end

context "promotion doesn't include item involved" do
let(:shirt) { create(:product) }
let!(:rule) { Promotion::Rules::Product.create(products: [shirt], promotion: promotion) }

it "doesn't create adjustment" do
expect {
subject.activate
}.not_to change { line_item.adjustments.count }
end
end

context "promotion includes item involved" do
let!(:rule) { Promotion::Rules::Product.create(products: [line_item.product], promotion: promotion) }

Expand Down

0 comments on commit f237364

Please sign in to comment.