Sha256: 6b0b41ef2715a35742528b362d3de975937cb5922b0bc1ea10688e09dd857065
Contents?: true
Size: 555 Bytes
Versions: 18
Compression:
Stored size: 555 Bytes
Contents
require File.expand_path( File.join( File.dirname( __FILE__ ), "spec_helper.rb" ) ) require 'launchy/paths' describe Launchy::Paths do it "can access the root dir of the project" do Launchy::Paths.root_dir.should == File.expand_path( File.join( File.dirname( __FILE__ ), ".." ) ) + ::File::SEPARATOR end %w[ lib ].each do |sub| it "can access the #{sub} path of the project" do Launchy::Paths.send("#{sub}_path" ).should == File.expand_path( File.join( File.dirname( __FILE__ ), "..", sub ) ) + ::File::SEPARATOR end end end
Version data entries
18 entries across 18 versions & 4 rubygems