Sha256: 1ef34146b17d0aca7b693e56a5e72bdcece61b545b33fd0ce20c17d53e4da7fb
Contents?: true
Size: 616 Bytes
Versions: 28
Compression:
Stored size: 616 Bytes
Contents
require 'lib/ramaze/spec/helper/snippets' describe '__DIR__' do # this is hardly exhaustive, but better than nothing it 'should report the directory of the current file' do __DIR__.should == File.dirname(File.expand_path(__FILE__)) end should 'join passed arguments and prefix with directory of current file' do __DIR__(:foo).should == File.join(File.dirname(File.expand_path(__FILE__)), 'foo') __DIR__('foo/bar').should == File.join(File.dirname(File.expand_path(__FILE__)), 'foo/bar') __DIR__(:foo, :bar).should == File.join(File.dirname(File.expand_path(__FILE__)), 'foo/bar') end end
Version data entries
28 entries across 28 versions & 5 rubygems