Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove no longer valid tests #2283

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 0 additions & 28 deletions spec/models/spree/shipping_method_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,34 +35,6 @@ module Spree
ShippingMethod.by_name.should == [sm2, sm3, sm1]
end


describe "availability" do
let(:sm) { create(:shipping_method) }
let(:currency) { 'AUD' }

before do
sm.calculator.preferred_currency = currency
end

it "is available to orders that match its distributor" do
o = create(:order, ship_address: create(:address),
distributor: sm.distributors.first, currency: currency)
sm.should be_available_to_order o
end

it "is not available to orders that do not match its distributor" do
o = create(:order, ship_address: create(:address),
distributor: create(:distributor_enterprise), currency: currency)
sm.should_not be_available_to_order o
end

it "is available to orders with no shipping address" do
o = create(:order, ship_address: nil,
distributor: sm.distributors.first, currency: currency)
sm.should be_available_to_order o
end
end

describe "finding services offered by all distributors" do
let!(:d1) { create(:distributor_enterprise) }
let!(:d2) { create(:distributor_enterprise) }
Expand Down