Sha256: 7dc766c6e90bb0647d56a94b5562bd3a9e88bb3bb43d0ec609f54319efb6f170
Contents?: true
Size: 629 Bytes
Versions: 19
Compression:
Stored size: 629 Bytes
Contents
require File.expand_path(File.join(File.dirname(__FILE__), %w[spec_helper])) describe Ziya do before( :all ) do @root = ::File.expand_path( ::File.join(::File.dirname(__FILE__), ".." ) ) end it "is versioned" do ::Ziya::Version.version.should =~ /\d+\.\d+\.\d+/ end it "generates a correct path relative to root" do ::Ziya.path( "ziya.rb" ).should == ::File.join( @root, "ziya.rb" ) end it "generates a correct path relative to lib" do ::Ziya.libpath(%w[ ziya utils.rb]).should == ::File.join( @root, "lib", "ziya", "utils.rb" ) end end
Version data entries
19 entries across 19 versions & 2 rubygems