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