Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
97effe0
commit 4a0c893
Showing
3 changed files
with
31 additions
and
9 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,30 @@ | ||
require 'spec_helper' | ||
|
||
describe "a spec not using Capybara" do | ||
it "should pass" do | ||
true.should == true | ||
end | ||
it "should fail and not invoke Capybara" do | ||
true.should == false | ||
end | ||
end | ||
|
||
describe "home page", :type => :request do | ||
it "simply returns the original HTML when viewed with Rack" do | ||
visit '/rack' | ||
page.should have_content('Rack') | ||
click_link('Does not exist') | ||
end | ||
end | ||
|
||
it "generates HTML showing that Javascript under Selenium works", :driver => :selenium do | ||
visit '/selenium' | ||
page.should have_content('Selenium supports Javascript') | ||
click_link('Does not exist') | ||
end | ||
|
||
it "generates HTML showing that Javascript under Capybara-webkit works", :js => true do | ||
visit '/webkit' | ||
page.should have_content('Webkit supports Javascript') | ||
click_link('Does not exist') | ||
end | ||
end |
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