Sha256: 7311a4f95bd36a7d6c7e89b0ca9c701ca078bd8f019772593e1f8106248f103f

Contents?: true

Size: 370 Bytes

Versions: 38

Compression:

Stored size: 370 Bytes

Contents

require 'spec_helper'

RSpec.describe 'opal-webpack-loader compiled successfully' do
  it 'and opal code can be executed in the browser' do
    doc = visit('/')
    expect(doc.evaluate_script('1 + 4')).to eq(5)
    expect(doc.evaluate_script('typeof Opal')).to include('object')
    result = doc.evaluate_ruby do
      1 + 5
    end
    expect(result).to eq(6)
  end
end

Version data entries

38 entries across 38 versions & 2 rubygems

Version Path
isomorfeus-1.0.0.zeta25 lib/isomorfeus/installer/templates/test_spec.rb.erb
isomorfeus-1.0.0.zeta24 lib/isomorfeus/installer/templates/test_spec.rb.erb
isomorfeus-1.0.0.zeta23 lib/isomorfeus/installer/templates/test_spec.rb.erb
isomorfeus-1.0.0.zeta22 lib/isomorfeus/installer/templates/test_spec.rb.erb
isomorfeus-1.0.0.zeta21 lib/isomorfeus/installer/templates/test_spec.rb.erb
isomorfeus-1.0.0.zeta20 lib/isomorfeus/installer/templates/test_spec.rb.erb
isomorfeus-1.0.0.zeta19 lib/isomorfeus/installer/templates/test_spec.rb.erb
isomorfeus-1.0.0.zeta18 lib/isomorfeus/installer/templates/test_spec.rb.erb
isomorfeus-1.0.0.zeta17 lib/isomorfeus/installer/templates/test_spec.rb.erb
isomorfeus-1.0.0.zeta16 lib/isomorfeus/installer/templates/test_spec.rb.erb
isomorfeus-1.0.0.zeta15 lib/isomorfeus/installer/templates/test_spec.rb.erb
isomorfeus-1.0.0.zeta14 lib/isomorfeus/installer/templates/test_spec.rb.erb
isomorfeus-1.0.0.zeta13 lib/isomorfeus/installer/templates/test_spec.rb.erb
isomorfeus-1.0.0.zeta12 lib/isomorfeus/installer/templates/test_spec.rb.erb
isomorfeus-1.0.0.zeta11 lib/isomorfeus/installer/templates/test_spec.rb.erb
isomorfeus-1.0.0.zeta10 lib/isomorfeus/installer/templates/test_spec.rb.erb
isomorfeus-1.0.0.zeta9 lib/isomorfeus/installer/templates/test_spec.rb.erb
isomorfeus-1.0.0.zeta8 lib/isomorfeus/installer/templates/test_spec.rb.erb
isomorfeus-1.0.0.zeta6 lib/isomorfeus/installer/templates/test_spec.rb.erb
isomorfeus-installer-1.0.0.zeta5 lib/isomorfeus/installer/templates/test_spec.rb.erb