spec/integration/stomp/stomp_adapter_spec.rb in message-driver-0.2.0.rc1 vs spec/integration/stomp/stomp_adapter_spec.rb in message-driver-0.2.0.rc2
- old
+ new
@@ -14,11 +14,11 @@
shared_examples "raises a stomp error" do
it "raises an error" do
stub_const("Stomp::Version::STRING", version)
expect {
described_class.new(connection_attrs)
- }.to raise_error MessageDriver::Error, "stomp 1.2.10 or a later version of the 1.2.x series is required for the stomp adapter"
+ }.to raise_error MessageDriver::Error, "stomp 1.3.1 or a later version of the 1.3.x series is required for the stomp adapter"
end
end
shared_examples "doesn't raise a stomp error" do
it "doesn't raise an an error" do
stub_const("Stomp::Version::STRING", version)
@@ -26,16 +26,16 @@
expect {
adapter = described_class.new(connection_attrs)
}.to_not raise_error
end
end
- %w(1.1.0 1.2.9 1.3.0).each do |v|
+ %w(1.1.0 1.2.9 1.3.0 1.4.0).each do |v|
context "stomp version #{v}" do
let(:version) { v }
include_examples "raises a stomp error"
end
end
- %w(1.2.10 1.2.11).each do |v|
+ %w(1.3.1 1.3.5).each do |v|
context "stomp version #{v}" do
let(:version) { v }
include_examples "doesn't raise a stomp error"
end
end