Sha256: 03c9fac7434330a531243b074dcc9379907fafc76a6575d999747b4519fa1af9
Contents?: true
Size: 795 Bytes
Versions: 3
Compression:
Stored size: 795 Bytes
Contents
ENV["RAILS_ENV"] = "test" require File.expand_path('../../config/environment', __FILE__) require 'rails/test_help' require 'capybara/rails' require "minitest/reporters" Minitest::Reporters.use!(Minitest::Reporters::SpecReporter.new) class ActiveSupport::TestCase # Add more helper methods to be used by all tests here... end Capybara.register_driver :chrome do |app| Capybara::Selenium::Driver.new(app, :browser => :chrome) end class ActionDispatch::IntegrationTest # Make the Capybara DSL available in all integration tests include Capybara::DSL def setup Capybara.current_driver = :chrome 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cone-0.3.1 | test/test/test_helper.rb |
cone-0.3.0 | test/test/test_helper.rb |
cone-0.2.0 | test/test/test_helper.rb |