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

Version Path
derailed-ziya-2.0.4 spec/ziya_spec.rb
derailed-ziya-2.0.6 spec/ziya_spec.rb
derailed-ziya-2.0.8 spec/ziya_spec.rb
derailed-ziya-2.1.0 spec/ziya_spec.rb
derailed-ziya-2.1.1 spec/ziya_spec.rb
derailed-ziya-2.1.2 spec/ziya_spec.rb
derailed-ziya-2.1.3 spec/ziya_spec.rb
derailed-ziya-2.1.4 spec/ziya_spec.rb
derailed-ziya-2.1.5 spec/ziya_spec.rb
ziya-2.1.7 spec/ziya_spec.rb
ziya-2.1.6 spec/ziya_spec.rb
ziya-2.0.1 spec/ziya_spec.rb
ziya-2.0.0 spec/ziya_spec.rb
ziya-2.0.2 spec/ziya_spec.rb
ziya-2.0.3 spec/ziya_spec.rb
ziya-2.0.6 spec/ziya_spec.rb
ziya-2.0.5 spec/ziya_spec.rb
ziya-2.0.4 spec/ziya_spec.rb
ziya-2.0.7 spec/ziya_spec.rb