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