Created
January 12, 2010 22:00
-
-
Save jnicklas/275669 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 'rubygems' | |
require 'spec' | |
require 'spec/autorun' | |
require 'capybara' | |
require 'capybara/dsl' | |
Capybara.app = proc { |env| [200, {}, "Hello World"]} | |
Spec::Runner.configure do |config| | |
config.include Capybara | |
end | |
describe "MyApp" do | |
before do | |
visit('/') | |
end | |
it "should show Hello World" do | |
page.should have_content('Hello World') | |
end | |
it "should not show Hello Doug" do | |
page.should_not have_content('Hello Doug') | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment