blob: 65f3bc4529344f451c76d3d0a1ffdaaf0fbec8b5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
require "spec_helper"
RSpec.describe SuperGood::SolidusTaxJar::DiscountCalculator do
describe "#discount" do
subject { calculator.discount }
let(:calculator) { described_class.new line_item }
let(:line_item) { ::Spree::LineItem.new(promo_total: 12.34) }
it { is_expected.to eq(-12.34) }
end
end
|