spec/support/shared/context_examples.rb in message-driver-0.4.0 vs spec/support/shared/context_examples.rb in message-driver-0.5.0

- old
+ new

@@ -1,11 +1,13 @@ -shared_examples 'an adapter context' do - it { should be_a MessageDriver::Adapters::ContextBase } +RSpec.shared_examples 'an adapter context' do + it { is_expected.to be_a MessageDriver::Adapters::ContextBase } - its(:adapter) { should be adapter } + describe '#adapter' do + it { expect(subject.adapter).to be adapter } + end it 'is initially valid' do - should be_valid + is_expected.to be_valid end describe '#invalidate' do it 'causes the context to become invalid' do subject.invalidate