Sha256: 7d5b6b4de2dc456a85967e3a4980fa06cde196b15ad84ced33f6ba28a0e893d3

Contents?: true

Size: 429 Bytes

Versions: 5

Compression:

Stored size: 429 Bytes

Contents

$:.unshift(File.dirname(__FILE__))

require 'spec_helper'
require 'mqtt'

describe MQTT do

  describe "version number" do
    it "should be defined as a constant" do
      defined?(MQTT::VERSION).should == 'constant'
    end

    it "should be a string" do
      MQTT::VERSION.should 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}$/
    end

  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mqtt-0.2.0 spec/mqtt_version_spec.rb
mqtt-0.1.0 spec/mqtt_version_spec.rb
mqtt-0.0.9 spec/mqtt_version_spec.rb
mqtt-0.0.8 spec/mqtt_version_spec.rb
mqtt-0.0.7 spec/mqtt_version_spec.rb