spec/support/shared/client_ack_examples.rb in message-driver-0.4.0 vs spec/support/shared/client_ack_examples.rb in message-driver-0.5.0
- old
+ new
@@ -1,16 +1,16 @@
-shared_examples 'client acks are supported' do
+RSpec.shared_examples 'client acks are supported' do
describe '#supports_client_acks' do
it 'returns true' do
expect(subject.supports_client_acks?).to eq(true)
end
end
- it { should respond_to :ack_message }
- it { should respond_to :nack_message }
+ it { is_expected.to respond_to :ack_message }
+ it { is_expected.to respond_to :nack_message }
end
-shared_examples 'client acks are not supported' do
+RSpec.shared_examples 'client acks are not supported' do
describe '#supports_client_acks' do
it 'returns false' do
expect(subject.supports_client_acks?).to eq(false)
end
end