Skip to content

Commit

Permalink
final changes for draft hw3
Browse files Browse the repository at this point in the history
  • Loading branch information
armandofox committed Feb 3, 2012
1 parent 608f923 commit 609b1fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion features/sort_movie_list.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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

8 changes: 3 additions & 5 deletions features/step_definitions/movie_steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 609b1fc

Please sign in to comment.