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

Version Path
arcabouco-0.2.13 vendor/bundle/gems/launchy-0.3.7/spec/paths_spec.rb
launchy-0.4.0 spec/paths_spec.rb
gemrage-1.0.0 vendor/ruby/1.8/gems/launchy-0.3.7/spec/paths_spec.rb
gemrage-0.4.1 vendor/ruby/1.8/gems/launchy-0.3.7/spec/paths_spec.rb
gemrage-0.4.0 vendor/ruby/1.8/gems/launchy-0.3.7/spec/paths_spec.rb
launchy-0.3.7 spec/paths_spec.rb
middleman-0.13.1 lib/middleman/vendor/gems/ruby/1.9.1/gems/launchy-0.3.5/spec/paths_spec.rb
middleman-0.12.2 lib/middleman/vendor/gems/gems/launchy-0.3.5/spec/paths_spec.rb
launchy-0.3.5 spec/paths_spec.rb
middleman-0.12.1 lib/middleman/vendor/gems/gems/launchy-0.3.3/spec/paths_spec.rb
middleman-0.12.0.pre3 lib/middleman/vendor/gems/gems/launchy-0.3.3/spec/paths_spec.rb
middleman-0.12.0.pre2 lib/middleman/vendor/gems/gems/launchy-0.3.3/spec/paths_spec.rb
middleman-0.12.0.pre lib/middleman/vendor/gems/gems/launchy-0.3.3/spec/paths_spec.rb
middleman-0.10.17 vendor/gems/gems/launchy-0.3.3/spec/paths_spec.rb
middleman-0.10.16 vendor/gems/gems/launchy-0.3.3/spec/paths_spec.rb
middleman-0.10.15 vendor/gems/gems/launchy-0.3.3/spec/paths_spec.rb
middleman-0.10.14 vendor/gems/gems/launchy-0.3.3/spec/paths_spec.rb
launchy-0.3.3 spec/paths_spec.rb