Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Got the HW3-2b part to work

  • Loading branch information...
commit a5cd6b44104b361054f11422d0a2c547d0f979d7 1 parent a78e94d
saasbook authored
Showing with 19 additions and 0 deletions.
  1. +16 −0 features/filter_movie_list.feature
  2. +3 −0  features/support/paths.rb
16 features/filter_movie_list.feature
@@ -23,10 +23,26 @@ Background: movies have been added to database
Scenario: restrict to movies with 'PG' or 'R' ratings
# enter step(s) to check the 'PG' and 'R' checkboxes
+ When I check "ratings[PG]"
+ And I check "ratings[R]"
# enter step(s) to uncheck all other checkboxes
+ And I uncheck "ratings[PG-13]"
+ And I uncheck "ratings[G]"
+ And I uncheck "ratings[NC-17]"
# enter step to "submit" the search form on the homepage
+ And I press "ratings_submit"
# enter step(s) to ensure that PG and R movies are visible
+ Then I should see "The Incredibles"
+ And I should see "Raiders of the Lost Ark"
+ And I should see "The Terminator"
+ And I should see "When Harry Met Sally"
+ And I should see "Amelie"
# enter step(s) to ensure that other movies are not visible
+ And I should not see "Aladdin"
+ And I should not see "The Help"
+ And I should not see "Chocolat"
+ And I should not see "2001: A Space Odyssey"
+ And I should not see "Chicken Run"
Scenario: no ratings selected
# see assignment
3  features/support/paths.rb
@@ -15,6 +15,9 @@ def path_to(page_name)
when /^the home\s?page$/
+ when /^the RottenPotatoes home\s?page$/
+ '/movies'
# Add more mappings here.
# Here is an example that pulls values out of the Regexp:

0 comments on commit a5cd6b4

Please sign in to comment.
Something went wrong with that request. Please try again.