Sha256: ef2a94f767f0b8e81b2aff757285d92285116e911e2d1e15da3587520cb2e7c4
Contents?: true
Size: 706 Bytes
Versions: 1
Compression:
Stored size: 706 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 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cone-0.1.0 | test/test/test_helper.rb |