Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Minitest Helper for Capybara-based pen-tests
require 'minitest/autorun'
require 'pry-rescue/minitest'
require 'capybara'
require 'capybara/dsl'
require 'capybara/poltergeist'
require 'minitest/colorize'
Capybara.register_driver :poltergeist do |app|
# to enable proxy support:, js_errors: false, phantomjs_options: ["--proxy="]), js_errors: false)
# Capybara and poltergeist configuration
Capybara.default_driver = :poltergeist
Capybara.run_server = false
module PenTest
class TestCase < MiniTest::Unit::TestCase
include Capybara::DSL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.