Sha256: 1b22fc1fbb698d4c7422cb6b1e1028bfb3262319a5865b749b45cd38fa95c78e

Contents?: true

Size: 601 Bytes

Versions: 8

Compression:

Stored size: 601 Bytes

Contents

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

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
wackamole-0.0.8 spec/wackamole_spec.rb
wackamole-0.0.7 spec/wackamole_spec.rb
wackamole-0.0.6 spec/wackamole_spec.rb
wackamole-0.0.5 spec/wackamole_spec.rb
wackamole-0.0.4 spec/wackamole_spec.rb
wackamole-0.0.3 spec/wackamole_spec.rb
wackamole-0.0.2 spec/wackamole_spec.rb
wackamole-0.0.1 spec/wackamole_spec.rb