Sha256: 630d043988d898c5e3a1f613cef21e42af617fcc95cf05577ac3c096aa2958a1

Contents?: true

Size: 624 Bytes

Versions: 6

Compression:

Stored size: 624 Bytes

Contents

require 'spec_helper'

describe Spree::RefundReason do
  describe 'Associations' do
    it { is_expected.to have_many(:refunds).dependent(:restrict_with_error) }
  end

  describe 'Class Methods' do
    describe '.return_processing_reason' do
      context 'default refund reason present' do
        let!(:default_refund_reason) { create(:default_refund_reason) }
        it { expect(described_class.return_processing_reason).to eq(default_refund_reason) }
      end

      context 'default refund reason not present' do
        it { expect(described_class.return_processing_reason).to eq(nil) }
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
spree_core-3.3.0.rc1 spec/models/spree/refund_reason_spec.rb
spree_core-3.2.1 spec/models/spree/refund_reason_spec.rb
spree_core-3.2.0 spec/models/spree/refund_reason_spec.rb
spree_core-3.2.0.rc3 spec/models/spree/refund_reason_spec.rb
spree_core-3.2.0.rc2 spec/models/spree/refund_reason_spec.rb
spree_core-3.2.0.rc1 spec/models/spree/refund_reason_spec.rb