Sha256: 92f083d5d61da9c1bfe2d2284a62804231b6424b169cd2ad7c9bdc076de67629

Contents?: true

Size: 801 Bytes

Versions: 18

Compression:

Stored size: 801 Bytes

Contents

require File.expand_path('spec_helper', File.dirname(__FILE__))

describe 'Nesta::Path' do
  before(:each) do
    @root = File.expand_path('..', File.dirname(__FILE__))
    @local_foo_bar = File.join(@root, 'foo/bar')
  end

  it 'should return local path' do
    Nesta::Path.local.should == @root
  end

  it 'should return path for file within local directory' do
    Nesta::Path.local('foo/bar').should == @local_foo_bar
  end

  it 'should combine path components' do
    Nesta::Path.local('foo', 'bar').should == @local_foo_bar
  end

  it 'should return themes path' do
    Nesta::Path.themes.should == File.expand_path('themes', @root)
  end

  it 'should return path for file within themes directory' do
    Nesta::Path.themes('foo/bar').should == File.join(@root, 'themes/foo/bar')
  end
end

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
nesta-0.11.1 spec/path_spec.rb
nesta-0.11.0 spec/path_spec.rb
nesta-0.10.0 spec/path_spec.rb
nesta-0.9.13 spec/path_spec.rb
nesta-0.9.11 spec/path_spec.rb
nesta-0.9.10 spec/path_spec.rb
nesta-0.9.9 spec/path_spec.rb
nesta-0.9.8 spec/path_spec.rb
nesta-0.9.7 spec/path_spec.rb
nesta-0.9.5 spec/path_spec.rb
mars-nesta-0.9.6 spec/path_spec.rb
mars-nesta-0.9.5 spec/path_spec.rb
mars-nesta-0.9.4 spec/path_spec.rb
nesta-0.9.4 spec/path_spec.rb
nesta-0.9.3 spec/path_spec.rb
nesta-0.9.2 spec/path_spec.rb
nesta-0.9.1 spec/path_spec.rb
nesta-0.9.0 spec/path_spec.rb