spec/mqtt_version_spec.rb in mqtt-0.2.0 vs spec/mqtt_version_spec.rb in mqtt-0.3.0

- old
+ new

@@ -5,18 +5,18 @@ describe MQTT do describe "version number" do it "should be defined as a constant" do - defined?(MQTT::VERSION).should == 'constant' + expect(defined?(MQTT::VERSION)).to eq('constant') end it "should be a string" do - MQTT::VERSION.should be_a(String) + expect(MQTT::VERSION).to be_a(String) end it "should be in the format x.y.z" do - MQTT::VERSION.should =~ /^\d{1,2}\.\d{1,2}\.\d{1,2}$/ + expect(MQTT::VERSION).to match(/^\d{1,2}\.\d{1,2}\.\d{1,2}$/) end end end