From 609b1fc27813c480ba25dde10f251aaf020a7c23 Mon Sep 17 00:00:00 2001 From: Armando Fox Date: Fri, 3 Feb 2012 15:37:23 -0800 Subject: [PATCH] final changes for draft hw3 --- features/sort_movie_list.feature | 2 +- features/step_definitions/movie_steps.rb | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/features/sort_movie_list.feature b/features/sort_movie_list.feature index 44f94cee6..4018dc0a4 100644 --- a/features/sort_movie_list.feature +++ b/features/sort_movie_list.feature @@ -24,6 +24,6 @@ Background: movies have been added to database Feature: sort movies alphabetically # your steps here -Feature: sort movies in increasing order of release_date +Feature: sort movies in increasing order of release date # your steps here diff --git a/features/step_definitions/movie_steps.rb b/features/step_definitions/movie_steps.rb index 8e67bdb54..111b4f175 100644 --- a/features/step_definitions/movie_steps.rb +++ b/features/step_definitions/movie_steps.rb @@ -10,11 +10,9 @@ # Make sure that one string (regexp) occurs before or after another one # on the same page -Then /I should see "(.*)" (before|after) "(.*)"/ do |e1, order, e2| - # assign a variable 'regex' here that creates a regular expression - # to match the page content against, to make sure that e1 occurs - # before or after e2 as specified in the step. - page.content.should match(regex) +Then /I should see "(.*)" before "(.*)"/ do |e1, e2| + # ensure that that e1 occurs before e2. + # page.content is the entire content of the page as a string. end # Make it easier to express checking or unchecking several boxes at once