Sha256: f9d279fd47a9198d07fc4c7519db51d806d7b5800a3c842753cf4cd88a3b91d0

Contents?: true

Size: 373 Bytes

Versions: 3

Compression:

Stored size: 373 Bytes

Contents

require 'spec_helper'

RSpec.describe 'isomorfeus 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

3 entries across 3 versions & 1 rubygems

Version Path
isomorfeus-2.0.0.rc3 lib/isomorfeus/installer/templates/web_spec.rb.erb
isomorfeus-2.0.0.rc2 lib/isomorfeus/installer/templates/web_spec.rb.erb
isomorfeus-2.0.0.rc1 lib/isomorfeus/installer/templates/web_spec.rb.erb