Sha256: f499bef630e607687d73a02ce62dfc5e528ffaccadc12d07282457af70ba3f04

Contents?: true

Size: 435 Bytes

Versions: 1

Compression:

Stored size: 435 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

1 entries across 1 versions & 1 rubygems

Version Path
mqtt-0.0.5 spec/mqtt_version_spec.rb