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