Sha256: 6af63ae726f634cb2d9947bdd14a62c84e52ff80deb0d934732f435154a3d08a

Contents?: true

Size: 256 Bytes

Versions: 11

Compression:

Stored size: 256 Bytes

Contents

require 'spec_helper'
require 'support/capybara'

RSpec.describe 'The example app', type: :feature, js: true do
  it 'loads Opal' do
    visit '/'
    wait_for_dom_ready
    expect(page.evaluate_script('window.opal_loaded === true')).to eq(true)
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
opal-rails-2.0.4 spec/integration/js_spec.rb
opal-rails-2.0.3 spec/integration/js_spec.rb
opal-rails-2.0.2 spec/integration/js_spec.rb
opal-rails-2.0.1 spec/integration/js_spec.rb
opal-rails-2.0.0 spec/integration/js_spec.rb
opal-rails-1.1.2 spec/integration/js_spec.rb
opal-rails-1.1.1 spec/integration/js_spec.rb
opal-rails-1.1.0 spec/integration/js_spec.rb
opal-rails-1.0.1 spec/integration/js_spec.rb
opal-rails-1.0.0 spec/integration/js_spec.rb
opal-rails-1.0.0.rc1 spec/integration/js_spec.rb