$:.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