From 96c17c58540873eeb710f6d6dca023a00ec1a66e Mon Sep 17 00:00:00 2001 From: Rich Downie Date: Mon, 18 Apr 2011 11:36:30 -0400 Subject: [PATCH] fixed --- features/distillery.feature | 6 ++++++ features/google.feature | 11 ----------- features/support/paths.rb | 4 ++-- 3 files changed, 8 insertions(+), 13 deletions(-) create mode 100644 features/distillery.feature delete mode 100644 features/google.feature diff --git a/features/distillery.feature b/features/distillery.feature new file mode 100644 index 0000000..23e82ec --- /dev/null +++ b/features/distillery.feature @@ -0,0 +1,6 @@ +Feature: testing the distillery website + +Scenario: Confirm Locations + * I am on the distillery page + * I click the "Contact Us" link + * I should see the text "Mt. Hope" \ No newline at end of file diff --git a/features/google.feature b/features/google.feature deleted file mode 100644 index f5f1d2a..0000000 --- a/features/google.feature +++ /dev/null @@ -1,11 +0,0 @@ -Feature: Testing Goolge Search - -Scenario: Find Distillery location - Given I am on the google page - And I fill in the text field "q" with "The Distillery" - And I wait for "2" seconds - And I click the "Search" button - And I wait for "2" seconds - And I click the "The Distillery" link - And I click the "Contact Us" link - Then I should see the text "1142 Mt. Hope Avenue" \ No newline at end of file diff --git a/features/support/paths.rb b/features/support/paths.rb index 81c3a0e..9de490d 100644 --- a/features/support/paths.rb +++ b/features/support/paths.rb @@ -20,8 +20,8 @@ def path_to(page_name) when /the youtube page/i @environment + "youtube.com" - when /the google page/i - @environment + "google.com" + when /the distillery page/i + @environment + "thedistillery.com" else raise "Can't find mapping from \"#{page_name}\" to a path.\n" +