Sha256: 0649fbaef1617f2199f2a75d3a966849a8e3a2fa5d7b8422ab1547cbfe3b97b3

Contents?: true

Size: 514 Bytes

Versions: 33

Compression:

Stored size: 514 Bytes

Contents

require 'lib/spec_helper'

RSpec.describe 'Opal.use_gem' do
  # Coverage probably should be improved

  it 'adds require_paths of a gem to Opal paths' do
    begin
      Opal.use_gem 'rake'
    rescue Opal::GemNotFound => e
      raise(e) unless e.gem_name == 'rake'
      skip %(Will fail if GEM_HOME has "rake" in the path, that's ok)
    end

    added_rake_paths = Opal.paths.grep(/rake/)
    expect(added_rake_paths.size).to eq(1)
    expect(added_rake_paths.first).to match(%r{/rake-[\d\.]+/lib$})
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
opal-1.8.3.rc1 spec/lib/paths_spec.rb
opal-1.8.2 spec/lib/paths_spec.rb
opal-1.8.1 spec/lib/paths_spec.rb
opal-1.8.0 spec/lib/paths_spec.rb
opal-1.8.0.beta1 spec/lib/paths_spec.rb
opal-1.7.4 spec/lib/paths_spec.rb
opal-1.8.0.alpha1 spec/lib/paths_spec.rb
opal-1.7.3 spec/lib/paths_spec.rb
opal-1.7.2 spec/lib/paths_spec.rb
opal-1.7.1 spec/lib/paths_spec.rb
opal-1.7.0 spec/lib/paths_spec.rb
opal-1.7.0.rc1 spec/lib/paths_spec.rb
opal-1.6.1 spec/lib/paths_spec.rb
opal-1.6.0 spec/lib/paths_spec.rb
opal-1.6.0.rc1 spec/lib/paths_spec.rb
opal-1.6.0.alpha1 spec/lib/paths_spec.rb
opal-1.5.1 spec/lib/paths_spec.rb
opal-1.5.0 spec/lib/paths_spec.rb
opal-1.5.0.rc1 spec/lib/paths_spec.rb
opal-1.4.1 spec/lib/paths_spec.rb