Skip to content
Browse files

Add test ensuring input and label are present on the page

  • Loading branch information...
1 parent bccb243 commit 08af8af54df0315df6db4b347df94e4bb838070e @joshuaclayton committed Oct 6, 2009
Showing with 6 additions and 1 deletion.
  1. +1 −0 features/homepage_viewing.feature
  2. +5 −1 features/step_definitions/webrat_steps.rb
1 features/homepage_viewing.feature
@@ -6,3 +6,4 @@ Feature: View the homepage
Scenario: View the homepage
When I go to the homepage
Then I should see "Peas"
+ And I should see a field labeled "Enter your long URL"
6 features/step_definitions/webrat_steps.rb
@@ -175,10 +175,14 @@
field_labeled(label).should_not be_checked
+Then /^I should see a field labeled "([^\"]*)"$/ do |label|
+ assert field_labeled(label)
Then /^I should be on (.+)$/ do |page_name|
URI.parse(current_url).path.should == path_to(page_name)
Then /^show me the page$/ do

0 comments on commit 08af8af

Please sign in to comment.
Something went wrong with that request. Please try again.