Sha256: 09df3af19291f16bd2db6192bddb0db5924257c3dbd4a1303818e79b3364f3ba

Contents?: true

Size: 402 Bytes

Versions: 40

Compression:

Stored size: 402 Bytes

Contents

require 'lib/spec_helper'

shared_examples :path_finder do
  # @param path
  # the path we want to read
  #
  # @param full_path
  # the expanded path that should be found
  #
  it 'returns the full path if the path exists' do
    expect(path_finder.find(path)).to eq(full_path)
  end

  it 'returns nil if the path is missing' do
    expect(path_finder.find('unexpected-path')).to eq(nil)
  end
end


Version data entries

40 entries across 40 versions & 3 rubygems

Version Path
opal-0.10.6 spec/lib/shared/path_finder_shared.rb
opal-0.10.6.beta spec/lib/shared/path_finder_shared.rb
opal-0.10.5 spec/lib/shared/path_finder_shared.rb
opal-0.10.4 spec/lib/shared/path_finder_shared.rb
opal-0.11.0.rc1 spec/lib/shared/path_finder_shared.rb
opal-0.10.3 spec/lib/shared/path_finder_shared.rb
opal-0.10.2 spec/lib/shared/path_finder_shared.rb
opal-0.10.1 spec/lib/shared/path_finder_shared.rb
opal-0.10.0 spec/lib/shared/path_finder_shared.rb
opal-0.10.0.rc2 spec/lib/shared/path_finder_shared.rb
opal-0.9.4 spec/lib/shared/path_finder_shared.rb
opal-0.9.3 spec/lib/shared/path_finder_shared.rb
opal-0.10.0.rc1 spec/lib/shared/path_finder_shared.rb
opal-0.10.0.beta5 spec/lib/shared/path_finder_shared.rb
opal-0.10.0.beta4 spec/lib/shared/path_finder_shared.rb
opal-0.10.0.beta3 spec/lib/shared/path_finder_shared.rb
opal-0.10.0.beta2 spec/lib/shared/path_finder_shared.rb
opal-0.10.0.beta1 spec/lib/shared/path_finder_shared.rb
opal-0.9.2 spec/lib/shared/path_finder_shared.rb
opal-0.9.0 spec/lib/shared/path_finder_shared.rb