spec/knapsack/allocator_builder_spec.rb in knapsack-1.4.0 vs spec/knapsack/allocator_builder_spec.rb in knapsack-1.4.1

- old
+ new

@@ -58,11 +58,11 @@ it { should eql allocator } end context 'when ENV test_file_pattern has value' do - let(:env_test_file_pattern) { 'custom_spec/**/*_spec.rb' } + let(:env_test_file_pattern) { 'custom_spec/**{,/*/**}/*_spec.rb' } let(:report_config) { { report_path: adapter_report_path } } let(:allocator_args) do { report: report, test_file_pattern: env_test_file_pattern, @@ -100,10 +100,10 @@ before do expect(Knapsack::Config::Env).to receive(:test_file_pattern).and_return(env_test_file_pattern) end context 'when ENV test_file_pattern has value' do - let(:env_test_file_pattern) { 'custom_spec/**/*_spec.rb' } + let(:env_test_file_pattern) { 'custom_spec/**{,/*/**}/*_spec.rb' } it { should eq 'custom_spec' } end context 'when ENV test_file_pattern has no value' do