Sha256: 5f6363397f9f25207607f1349aa33d2b06d6530f633fae98228e10dfa6b88d8b

Contents?: true

Size: 615 Bytes

Versions: 1

Compression:

Stored size: 615 Bytes

Contents

require 'spec_helper'

describe Kernel do
  def self.get_requires
    Dir[File.dirname(__FILE__) + '/../lib/**/*.rb']
  end

  # Try to require each of the files in RTSP
  get_requires.each do |r|
    it "should require #{r}" do

      # A require returns true if it was required, false if it had already been
      # required, and nil if it couldn't require.
      Kernel.require(r.to_s).should_not be_nil
    end
  end
end

describe RTSP do
  it "should have a VERSION constant" do
    RTSP.const_defined?('VERSION').should be_true
  end

  it "has version 0.4.2" do
    RTSP::VERSION.should == '0.4.2'
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rtsp-0.4.2 spec/unit/rtsp_spec.rb