Sha256: 9b5eef0b077712f54c2338e0f18f2f8c359961a48fbb56c94ae73888c2a57642

Contents?: true

Size: 612 Bytes

Versions: 92

Compression:

Stored size: 612 Bytes

Contents

describe KnapsackPro::TestFilePattern do
  describe '.call' do
    let(:adapter_class) { KnapsackPro::Adapters::BaseAdapter }

    subject { described_class.call(adapter_class) }

    before do
      expect(KnapsackPro::Config::Env).to receive(:test_file_pattern).and_return(env_test_file_pattern)
    end

    context 'when ENV defined' do
      let(:env_test_file_pattern) { 'spec/**{,/*/**}/*_spec.rb' }

      it { should eq env_test_file_pattern }
    end

    context 'when ENV not defined' do
      let(:env_test_file_pattern) { nil }

      it { should eq 'test/**{,/*/**}/*_test.rb' }
    end
  end
end

Version data entries

92 entries across 92 versions & 1 rubygems

Version Path
knapsack_pro-1.18.2 spec/knapsack_pro/test_file_pattern_spec.rb
knapsack_pro-1.18.1 spec/knapsack_pro/test_file_pattern_spec.rb
knapsack_pro-1.18.0 spec/knapsack_pro/test_file_pattern_spec.rb
knapsack_pro-1.17.0 spec/knapsack_pro/test_file_pattern_spec.rb
knapsack_pro-1.16.1 spec/knapsack_pro/test_file_pattern_spec.rb
knapsack_pro-1.16.0 spec/knapsack_pro/test_file_pattern_spec.rb
knapsack_pro-1.15.0 spec/knapsack_pro/test_file_pattern_spec.rb
knapsack_pro-1.14.0 spec/knapsack_pro/test_file_pattern_spec.rb
knapsack_pro-1.13.0 spec/knapsack_pro/test_file_pattern_spec.rb
knapsack_pro-1.12.1 spec/knapsack_pro/test_file_pattern_spec.rb
knapsack_pro-1.12.0 spec/knapsack_pro/test_file_pattern_spec.rb
knapsack_pro-1.11.0 spec/knapsack_pro/test_file_pattern_spec.rb
knapsack_pro-1.10.1 spec/knapsack_pro/test_file_pattern_spec.rb
knapsack_pro-1.10.0 spec/knapsack_pro/test_file_pattern_spec.rb
knapsack_pro-1.9.0 spec/knapsack_pro/test_file_pattern_spec.rb
knapsack_pro-1.8.0 spec/knapsack_pro/test_file_pattern_spec.rb
knapsack_pro-1.7.0 spec/knapsack_pro/test_file_pattern_spec.rb
knapsack_pro-1.6.0 spec/knapsack_pro/test_file_pattern_spec.rb
knapsack_pro-1.5.0 spec/knapsack_pro/test_file_pattern_spec.rb
knapsack_pro-1.4.0 spec/knapsack_pro/test_file_pattern_spec.rb