Sha256: 1ada49360ec0126981ef83cc9d3548b75ffc7f13ccdf45c707ce3c5a0c19aa4d
Contents?: true
Size: 319 Bytes
Versions: 2
Compression:
Stored size: 319 Bytes
Contents
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
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
super_good-solidus_taxjar-0.18.2 | spec/super_good/solidus_taxjar/discount_calculator_spec.rb |
super_good-solidus_taxjar-0.18.1 | spec/super_good/solidus_taxjar/discount_calculator_spec.rb |