Sha256: f5d3b8425d853bdc5cfc4f11840d6f7b608d8da3e131c7beeab3669bb5db75f7

Contents?: true

Size: 398 Bytes

Versions: 17

Compression:

Stored size: 398 Bytes

Contents

require '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

17 entries across 17 versions & 1 rubygems

Version Path
opal-sprockets-0.4.9.1.0.3.7 spec/shared/path_finder_shared.rb
opal-sprockets-0.4.8.1.0.3.7 spec/shared/path_finder_shared.rb
opal-sprockets-0.4.7.1.0.3.7 spec/shared/path_finder_shared.rb
opal-sprockets-0.4.6.1.0.3.7 spec/shared/path_finder_shared.rb
opal-sprockets-0.4.5.1.0.3.7 spec/shared/path_finder_shared.rb
opal-sprockets-0.4.4.1.0.3.7 spec/shared/path_finder_shared.rb
opal-sprockets-0.4.3.0.11.0.3.7 spec/shared/path_finder_shared.rb
opal-sprockets-0.4.2.0.11.0.3.1 spec/shared/path_finder_shared.rb
opal-sprockets-0.4.2.pre.1.0.11.0.3.1 spec/shared/path_finder_shared.rb
opal-sprockets-0.4.1.0.11.0.3.1 spec/shared/path_finder_shared.rb
opal-sprockets-0.4.1.0.11.0.rc1.3.1 spec/shared/path_finder_shared.rb
opal-sprockets-0.4.1.0.11.0.rc1.3.1.beta2 spec/shared/path_finder_shared.rb
opal-sprockets-0.4.1.0.10.4.3.1.0 spec/shared/path_finder_shared.rb
opal-sprockets-0.4.0.0.11.0.rc1.3.1.beta2 spec/shared/path_finder_shared.rb
opal-sprockets-0.4.0.0.10.0.3.0.0 spec/shared/path_finder_shared.rb
opal-sprockets-0.4.0.0.10.0.3.0.beta1 spec/shared/path_finder_shared.rb
opal-sprockets-0.4.0.0.11.dev.3.1.beta1 spec/shared/path_finder_shared.rb