Browse files

final changes for draft hw3

  • Loading branch information...
1 parent 608f923 commit 609b1fc27813c480ba25dde10f251aaf020a7c23 @armandofox armandofox committed Feb 3, 2012
Showing with 4 additions and 6 deletions.
  1. +1 −1 features/sort_movie_list.feature
  2. +3 −5 features/step_definitions/movie_steps.rb
@@ -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
@@ -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.
# Make it easier to express checking or unchecking several boxes at once

0 comments on commit 609b1fc

Please sign in to comment.