summaryrefslogtreecommitdiff
path: root/spec/lib/solidus_subscriptions/config_spec.rb
blob: b5b851940ad6c03b2443ec77a143a4b8b3941110 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
require 'spec_helper'

RSpec.describe SolidusSubscriptions::Config do
  before { described_class.instance_variable_set('@gateway', nil) }
  after { described_class.instance_variable_set('@gateway', nil) }

  describe '.default_gateway' do
    let(:bogus) { build_stubbed(:credit_card_payment_method) }
    subject(:gateway) { described_class.default_gateway }

    before do
      described_class.default_gateway { bogus }
    end

    it { is_expected.to eq bogus }
  end
end