Skip to content

Instantly share code, notes, and snippets.

@jcoglan
Last active December 10, 2015 08:58
Show Gist options
  • Select an option

  • Save jcoglan/4410634 to your computer and use it in GitHub Desktop.

Select an option

Save jcoglan/4410634 to your computer and use it in GitHub Desktop.
require './config/environment'
require 'capybara/dsl'
require 'terminus'
Capybara.app = Blarg::Application
Capybara.current_driver = :terminus
Terminus.start_phantomjs
require 'spec_helper'
describe Blarg do
include Capybara::DSL
it 'says wtf' do
visit '/'
page.should have_text('WTF')
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment