Sha256: 35b50c4ce64a854fd3a60057f9c8a84fe614dec6d397fe9aa734cf7562c7b275

Contents?: true

Size: 390 Bytes

Versions: 26

Compression:

Stored size: 390 Bytes

Contents

require 'spec_helper'
require 'opal-source-maps'

describe Opal::SourceMap do
  before do
    pathname = 'foo.rb'
    compiler = Opal::Compiler.new("1 + 1", :file => pathname)
    @source  = compiler.compile
    @map     = Opal::SourceMap.new(compiler.fragments, pathname)
  end

  it 'does not blow while generating the map' do
    lambda { @map.as_json }.should_not raise_error
  end
end

Version data entries

26 entries across 26 versions & 3 rubygems

Version Path
opal-0.9.4 spec/opal/core/source_map_spec.rb
opal-0.9.3 spec/opal/core/source_map_spec.rb
opal-0.10.0.beta2 spec/opal/core/source_map_spec.rb
opal-0.10.0.beta1 spec/opal/core/source_map_spec.rb
opal-0.9.2 spec/opal/core/source_map_spec.rb
opal-0.9.0 spec/opal/core/source_map_spec.rb
opal-0.9.0.rc1 spec/opal/core/source_map_spec.rb
opal-0.9.0.beta2 spec/opal/core/source_map_spec.rb
opal-0.9.0.beta1 spec/opal/core/source_map_spec.rb
opal-0.8.1 spec/opal/core/source_map_spec.rb
opal-0.8.1.rc1 spec/opal/core/source_map_spec.rb
opal-wedge-0.9.0.dev spec/opal/core/source_map_spec.rb
opal-0.8.0 spec/opal/core/source_map_spec.rb
opal-0.8.0.rc3 spec/opal/core/source_map_spec.rb
opal-0.8.0.rc2 spec/opal/core/source_map_spec.rb
opal-0.8.0.rc1 spec/opal/core/source_map_spec.rb
opal-0.8.0.beta1 spec/opal/core/source_map_spec.rb
opal-0.7.2 spec/opal/core/source_map_spec.rb
opal-0.7.1 spec/opal/core/source_map_spec.rb
opal-0.7.0 spec/opal/core/source_map_spec.rb