spec/dirge_spec.rb in dirge-0.0.3 vs spec/dirge_spec.rb in dirge-0.0.4

- old
+ new

@@ -1,7 +1,11 @@ describe 'Dirge' do - it "should resolve a path" do + it "should resolve a path through String#~" do (~'test:2test/test').should == File.expand_path(File.join(File.dirname(__FILE__), 'test:2test', 'test')) + end + + it "should resolve a path through File#relative" do + File.relative('test:2test/test').should == File.expand_path(File.join(File.dirname(__FILE__), 'test:2test', 'test')) end it 'should require a relative path' do proc { require_relative 'test:2test/test' \ No newline at end of file