spec/knapsack/allocator_builder_spec.rb in knapsack-1.3.4 vs spec/knapsack/allocator_builder_spec.rb in knapsack-1.4.0
- old
+ new
@@ -73,10 +73,16 @@
it { should eql allocator }
end
end
+ context 'when RSpecAdapter' do
+ let(:adapter_class) { Knapsack::Adapters::RSpecAdapter }
+ it_behaves_like 'allocator builder'
+ end
+
+ # To make sure we do not break backwards compatibility
context 'when RspecAdapter' do
let(:adapter_class) { Knapsack::Adapters::RspecAdapter }
it_behaves_like 'allocator builder'
end
@@ -85,10 +91,10 @@
it_behaves_like 'allocator builder'
end
end
describe '#test_dir' do
- let(:adapter_class) { Knapsack::Adapters::RspecAdapter }
+ let(:adapter_class) { Knapsack::Adapters::RSpecAdapter }
subject { allocator_builder.test_dir }
before do
expect(Knapsack::Config::Env).to receive(:test_file_pattern).and_return(env_test_file_pattern)