Created
August 8, 2014 20:56
-
-
Save BobGu/a3802084248bd1424d11 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require_relative "../test_helper" | |
require 'sinatra' | |
require 'capybara' | |
require_relative "../../lib/app" | |
Capybara.app = UncubedApp | |
class FeatureTest < Minitest::Test | |
include Capybara::DSL | |
def teardown | |
Capybara.reset_sessions! | |
Capybara.use_default_driver | |
# File.delete(File.expand_path("~/Dropbox/Projects/Turing/clonewars_uncubed/test_database.db")) | |
end | |
def require_js | |
Capybara.current_driver = :selenium | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment