Sha256: c71d707521e6a5a8953d91af7b3a58a37fb3e0378fc1e410487c642227f4bc5f

Contents?: true

Size: 587 Bytes

Versions: 28

Compression:

Stored size: 587 Bytes

Contents

require File.join(File.dirname(__FILE__), %w[spec_helper])

describe Rackamole do
 before( :all ) do        
    @root = ::File.expand_path( ::File.join(::File.dirname(__FILE__), ".." ) )
  end
    
  it "is versioned" do
    Rackamole.version.should =~ /\d+\.\d+\.\d+/
  end
  
  it "generates a correct path relative to root" do
    Rackamole.path( "mole.rb" ).should == ::File.join(@root, "mole.rb" )
  end
  
  it "generates a correct path relative to lib" do
    Rackamole.libpath(%w[ rackmole mole.rb]).should == ::File.join(@root, "lib", "rackmole", "mole.rb")
  end       
  
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
rackamole-0.3.7 spec/rackamole_spec.rb
rackamole-0.3.6 spec/rackamole_spec.rb
rackamole-0.3.5 spec/rackamole_spec.rb
rackamole-0.3.4 spec/rackamole_spec.rb
rackamole-0.3.3 spec/rackamole_spec.rb
rackamole-0.3.2 spec/rackamole_spec.rb
rackamole-0.3.1 spec/rackamole_spec.rb
rackamole-0.3.0 spec/rackamole_spec.rb
rackamole-0.2.9 spec/rackamole_spec.rb
rackamole-0.2.8 spec/rackamole_spec.rb
rackamole-0.2.7 spec/rackamole_spec.rb
rackamole-0.2.6 spec/rackamole_spec.rb
rackamole-0.2.5 spec/rackamole_spec.rb
rackamole-0.2.4 spec/rackamole_spec.rb
rackamole-0.2.3 spec/rackamole_spec.rb
rackamole-0.2.2 spec/rackamole_spec.rb
rackamole-0.2.1 spec/rackamole_spec.rb
rackamole-0.2.0 spec/rackamole_spec.rb
rackamole-0.1.1 spec/rackamole_spec.rb
rackamole-0.1.0 spec/rackamole_spec.rb