Sha256: dcac9bc701371e6cd8594cea2e84208cc38ef748875d80200d4ef87dda484157

Contents?: true

Size: 399 Bytes

Versions: 3

Compression:

Stored size: 399 Bytes

Contents

require 'spec_helper'

describe Spree::Adjustment, type: :model do
  let(:order) { build(:avalara_order) }

  describe '#avatax_cache_key' do
    it 'should respond with a cache key' do
      adjustment = build(:adjustment, id: 1, amount: 20.0, order: order)

      expected_response = 'Spree::Adjustment-1-20.0'

      expect(adjustment.avatax_cache_key).to eq(expected_response)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
solidus_avatax_certified-3.0.0 spec/models/spree/adjustment_decorator_spec.rb
solidus_avatax_certified-2.0.0 spec/models/spree/adjustment_decorator_spec.rb
solidus_avatax_certified-1.1.0 spec/models/spree/adjustment_decorator_spec.rb