Sha256: 29e06e5b33f147e1c17ba00954607d3912fd3451b3215406e150b26c6d6be629

Contents?: true

Size: 627 Bytes

Versions: 6

Compression:

Stored size: 627 Bytes

Contents

ENV["RAILS_ENV"] = "test"
require File.expand_path('../../config/environment', __FILE__)
require 'rails/test_help'
require 'capybara/rails'
require 'turn'

class ActiveSupport::TestCase
  # Add more helper methods to be used by all tests here...
end

class ActionDispatch::IntegrationTest
  # Make the Capybara DSL available in all integration tests
  include Capybara::DSL
  def setup
    Capybara.current_driver = Capybara.javascript_driver
    visit '/'
  end

  def get_js(code)
    page.execute_script("return #{code}")
  end

  def teardown
    Capybara.reset_sessions!    # Forget the (simulated) browser state
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cone-0.0.6 test/test/test_helper.rb
cone-0.0.5 test/test/test_helper.rb
cone-0.0.4 test/test/test_helper.rb
cone-0.0.3 test/test/test_helper.rb
cone-0.0.2 test/test/test_helper.rb
cone-0.0.1 test/test/test_helper.rb