spec/lib/adapters/base_adapter_spec.rb in basquiat-1.2.0 vs spec/lib/adapters/base_adapter_spec.rb in basquiat-1.3.0.pre.1
- old
+ new
@@ -9,10 +9,10 @@
expect { adapter.public_send(meth) }.to raise_error Basquiat::Errors::SubclassResponsibility
end
end
it 'raise error when using an unregistered strategy' do
- # expect(adapter.use_strategy(:not_here)).to raise_error StrategyNotRegistered
+ expect { adapter.class.strategy(:not_here) }.to raise_error Basquiat::Errors::StrategyNotRegistered
end
it 'register a requeue strategy' do
class CoolStuff
end