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.0.9 spec/rackamole_spec.rb
rackamole-0.0.8 spec/rackamole_spec.rb
rackamole-0.0.7 spec/rackamole_spec.rb
rackamole-0.0.6 spec/rackamole_spec.rb
rackamole-0.0.4 spec/rackamole_spec.rb
rackamole-0.0.3 spec/rackamole_spec.rb
rackamole-0.0.2 spec/rackamole_spec.rb
rackamole-0.0.1 spec/rackamole_spec.rb