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