Remove dead code: Shipment#display_total_cost

This commit is contained in:
Matt-Yorkley
2021-02-07 13:39:39 +00:00
parent 9851c9a762
commit 8d6468dab1
2 changed files with 0 additions and 11 deletions

View File

@@ -168,10 +168,6 @@ module Spree
cost + item_cost
end
def display_total_cost
Spree::Money.new(total_cost, currency: currency)
end
def editable_by?(_user)
!shipped?
end

View File

@@ -50,13 +50,6 @@ describe Spree::Shipment do
end
end
context "display_total_cost" do
it "retuns a Spree::Money" do
allow(shipment).to receive(:total_cost) { 21.22 }
expect(shipment.display_total_cost).to eq Spree::Money.new(21.22)
end
end
it "#item_cost" do
shipment = Spree::Shipment.new(
order: build_stubbed(:order_with_totals, line_items: [build_stubbed(:line_item)])