Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (22 sloc) 0.567 kB
require './cotm'
require 'capybara'
require 'capybara/dsl'
require 'test/unit'
require 'vcr'
require 'webmock'
require 'webmock/test_unit'
VCR.configure do |c|
c.cassette_library_dir = 'fixtures/vcr_cassettes'
c.hook_into :webmock
end
class TestCOTM < Test::Unit::TestCase
include Capybara::DSL
# Capybara.default_driver = :selenium # <-- use Selenium driver
def setup
Capybara.app = Sinatra::Application.new
end
def test_page_loads
visit '/'
assert page.has_content?('Comment on the Movies'), "Our page load test has failed."
end
end
Jump to Line
Something went wrong with that request. Please try again.