summaryrefslogtreecommitdiff
path: root/spec/super_good/solidus_taxjar/discount_calculator_spec.rb
blob: d628c4f59636f2d9cbce415327d85986cdc05aaf (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