Sha256: 9638ab4ab15224c6861d5d845e060d01dfec4ab42fde6c09987e04669b0054fc

Contents?: true

Size: 643 Bytes

Versions: 68

Compression:

Stored size: 643 Bytes

Contents

require 'albacore/paths'
require 'albacore/rake_overrides'

describe 'when overriding rake' do
  it 'has string return value by default' do
    ::Rake.old_original_dir.should be_an_instance_of String
  end

  it 'should override Rake#original_dir so that includes separator chars' do
    # assume we never test from root of file system:
    ::Rake.original_dir.should include(Paths.separator)
  end

  it 'should have #original_dir_path' do
    ::Rake.should respond_to(:original_dir_path)
  end

  it 'should have #original_dir_path().to_s include the separator' do
    ::Rake.original_dir_path.to_s.should include(Paths.separator)
  end
end

Version data entries

68 entries across 68 versions & 1 rubygems

Version Path
albacore-2.0.0.rc.14 spec/rake_overrides_spec.rb
albacore-2.0.0.rc.13 spec/rake_overrides_spec.rb
albacore-2.0.0.rc.12 spec/rake_overrides_spec.rb
albacore-2.0.0.rc.11 spec/rake_overrides_spec.rb
albacore-2.0.0.rc.10 spec/rake_overrides_spec.rb
albacore-2.0.0.rc.9 spec/rake_overrides_spec.rb
albacore-2.0.0.rc.8 spec/rake_overrides_spec.rb
albacore-2.0.0.rc.7 spec/rake_overrides_spec.rb