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