Sha256: 3322bb5b1ef6f607476b7dd2f126569ba432394abd6ec8a1f9e4d614e5f54898

Contents?: true

Size: 395 Bytes

Versions: 6

Compression:

Stored size: 395 Bytes

Contents

require 'lib/spec_helper'

describe 'Opal.use_gem' do
  it 'adds require_paths of a gem to Opal paths' do
    Opal.use_gem 'sprockets'
    # Will fail if GEM_HOME has "sprockets" in the path, that's ok.
    added_sprockets_paths = Opal.paths.grep /sprockets/
    expect(added_sprockets_paths.size).to eq(1)
    expect(added_sprockets_paths.first).to match(%r{/sprockets-[\d\.]+/lib$})
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
opal-0.9.4 spec/lib/paths_spec.rb
opal-0.9.3 spec/lib/paths_spec.rb
opal-0.9.2 spec/lib/paths_spec.rb
opal-0.9.0 spec/lib/paths_spec.rb
opal-0.9.0.rc1 spec/lib/paths_spec.rb
opal-0.9.0.beta2 spec/lib/paths_spec.rb