Sha256: 349e8adaef39b74a70d6da7b0699bf24c17fb65af1d7772ad8864467b561e001
Contents?: true
Size: 983 Bytes
Versions: 7
Compression:
Stored size: 983 Bytes
Contents
require 'test_helper' describe Nesta::Path do def root '/path/to/site/on/filesystem' end describe '.local' do it 'returns root path of site on filesystem' do with_app_root(root) do assert_equal root, Nesta::Path.local end end it "should return path for file within site's directory" do with_app_root(root) do assert_equal "#{root}/foo/bar", Nesta::Path.local('foo/bar') end end it 'should combine path components' do with_app_root(root) do assert_equal "#{root}/foo/bar", Nesta::Path.local('foo', 'bar') end end end describe '.themes' do it 'should return themes path' do with_app_root(root) do assert_equal "#{root}/themes", Nesta::Path.themes end end it 'should return path for file within themes directory' do with_app_root(root) do assert_equal "#{root}/themes/foo/bar", Nesta::Path.themes('foo/bar') end end end end
Version data entries
7 entries across 7 versions & 1 rubygems