Created
August 7, 2012 00:15
-
-
Save uberscientist/3279838 to your computer and use it in GitHub Desktop.
SaaS BDD assignment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-------------------------------------------------------------------------------- | |
Test passed. (+0.2) | |
-------------------------------------------------------------------------------- | |
The following required failures were not detected: | |
- all ratings or checkboxes selected | |
with the following modifications: | |
- results = [G, PG-13] movies | |
| Disabling profiles... | |
| Disabling profiles... | |
| Feature: display list of movies filtered by MPAA rating | |
| | |
| As a concerned parent | |
| So that I can quickly browse movies appropriate for my family | |
| I want to see movies matching only certain MPAA ratings | |
| | |
| Background: movies have been added to database # /tmp/submission20120805-10801-rc5yqk/features/filter_movie_list.feature:7 | |
| Given the following movies exist: # /tmp/submission20120805-10801-rc5yqk/features/step_definitions/movie_steps.rb:3 | |
| | title | rating | release_date | | |
| | Aladdin | G | 25-Nov-1992 | | |
| | The Terminator | R | 26-Oct-1984 | | |
| | When Harry Met Sally | R | 21-Jul-1989 | | |
| | The Help | PG-13 | 10-Aug-2011 | | |
| | Chocolat | PG-13 | 5-Jan-2001 | | |
| | Amelie | R | 25-Apr-2001 | | |
| | 2001: A Space Odyssey | G | 6-Apr-1968 | | |
| | The Incredibles | PG | 5-Nov-2004 | | |
| | Raiders of the Lost Ark | PG | 12-Jun-1981 | | |
| | Chicken Run | G | 21-Jun-2000 | | |
| And I am on the RottenPotatoes home page # /tmp/submission20120805-10801-rc5yqk/features/step_definitions/web_steps.rb:44 | |
| | |
| Scenario: restrict to movies with "PG" or "R" ratings # /tmp/submission20120805-10801-rc5yqk/features/filter_movie_list.feature:24 | |
| When I check the following ratings: PG, R # /tmp/submission20120805-10801-rc5yqk/features/step_definitions/movie_steps.rb:24 | |
| And I check "ratings_PG" # /tmp/submission20120805-10801-rc5yqk/features/step_definitions/web_steps.rb:89 | |
| And I uncheck the following ratings: PG-13, G, NC-17 # /tmp/submission20120805-10801-rc5yqk/features/step_definitions/movie_steps.rb:24 | |
| And I press "ratings_submit" # /tmp/submission20120805-10801-rc5yqk/features/step_definitions/web_steps.rb:52 | |
| Then I should see "When Harry Met Sally" # /tmp/submission20120805-10801-rc5yqk/features/step_definitions/web_steps.rb:105 | |
| And I should see "The Incredibles" # /tmp/submission20120805-10801-rc5yqk/features/step_definitions/web_steps.rb:105 | |
| expected there to be content "The Incredibles" in "Rotten Potatoes!\nRotten Potatoes!\n\nAll Movies\n\n\n\nInclude:\nG\n\nPG\n\nPG-13\n\nNC-17\n\nR\n\n\nMovie Title\nRating\nRelease Date\nMore Info\nThe Terminator\nR\n1984-10-26 00:00:00 UTC\nMore about The Terminator\nWhen Harry Met Sally\nR\n1989-07-21 00:00:00 UTC\nMore about When Harry Met Sally\nAmelie\nR\n2001-04-25 00:00:00 UTC\nMore about Amelie\nAdd new movie\n\n\n" (RSpec::Expectations::ExpectationNotMetError) | |
| /tmp/submission20120805-10801-rc5yqk/features/step_definitions/web_steps.rb:107:in `/^(?:|I )should see "([^"]*)"$/' | |
| /tmp/submission20120805-10801-rc5yqk/features/filter_movie_list.feature:34:in `And I should see "The Incredibles"' | |
| But I should not see "Chocolat" # /tmp/submission20120805-10801-rc5yqk/features/step_definitions/web_steps.rb:123 | |
| And I should not see "Chicken Run" # /tmp/submission20120805-10801-rc5yqk/features/step_definitions/web_steps.rb:123 | |
| | |
| Scenario: no ratings selected # /tmp/submission20120805-10801-rc5yqk/features/filter_movie_list.feature:40 | |
| When I uncheck the following ratings: PG-13, G, NC-17, PG, R # /tmp/submission20120805-10801-rc5yqk/features/step_definitions/movie_steps.rb:24 | |
| And I press "ratings_submit" # /tmp/submission20120805-10801-rc5yqk/features/step_definitions/web_steps.rb:52 | |
| Then I should see none of the movies # /tmp/submission20120805-10801-rc5yqk/features/step_definitions/movie_steps.rb:33 | |
| | |
| Scenario: all ratings selected # /tmp/submission20120805-10801-rc5yqk/features/filter_movie_list.feature:45 | |
| When I check the following ratings: PG-13, G, NC-17, PG, R # /tmp/submission20120805-10801-rc5yqk/features/step_definitions/movie_steps.rb:24 | |
| And I press "ratings_submit" # /tmp/submission20120805-10801-rc5yqk/features/step_definitions/web_steps.rb:52 | |
| Then I should see all of the movies # /tmp/submission20120805-10801-rc5yqk/features/step_definitions/movie_steps.rb:33 | |
| | |
| Failing Scenarios: | |
| cucumber /tmp/submission20120805-10801-rc5yqk/features/filter_movie_list.feature:24 # Scenario: restrict to movies with "PG" or "R" ratings | |
| | |
| 3 scenarios (1 failed, 2 passed) | |
| 20 steps (1 failed, 2 skipped, 17 passed) | |
| 0m2.010s | |
Test failed. (-0.075) | |
-------------------------------------------------------------------------------- | |
The following required failures were not detected: | |
- all ratings or checkboxes selected | |
with the following modifications: | |
- results = [] | |
| Disabling profiles... | |
| Disabling profiles... | |
| Feature: display list of movies filtered by MPAA rating | |
| | |
| As a concerned parent | |
| So that I can quickly browse movies appropriate for my family | |
| I want to see movies matching only certain MPAA ratings | |
| | |
| Background: movies have been added to database # /tmp/submission20120805-10801-rc5yqk/features/filter_movie_list.feature:7 | |
| Given the following movies exist: # /tmp/submission20120805-10801-rc5yqk/features/step_definitions/movie_steps.rb:3 | |
| | title | rating | release_date | | |
| | Aladdin | G | 25-Nov-1992 | | |
| | The Terminator | R | 26-Oct-1984 | | |
| | When Harry Met Sally | R | 21-Jul-1989 | | |
| | The Help | PG-13 | 10-Aug-2011 | | |
| | Chocolat | PG-13 | 5-Jan-2001 | | |
| | Amelie | R | 25-Apr-2001 | | |
| | 2001: A Space Odyssey | G | 6-Apr-1968 | | |
| | The Incredibles | PG | 5-Nov-2004 | | |
| | Raiders of the Lost Ark | PG | 12-Jun-1981 | | |
| | Chicken Run | G | 21-Jun-2000 | | |
| And I am on the RottenPotatoes home page # /tmp/submission20120805-10801-rc5yqk/features/step_definitions/web_steps.rb:44 | |
| | |
| Scenario: restrict to movies with "PG" or "R" ratings # /tmp/submission20120805-10801-rc5yqk/features/filter_movie_list.feature:24 | |
| When I check the following ratings: PG, R # /tmp/submission20120805-10801-rc5yqk/features/step_definitions/movie_steps.rb:24 | |
| And I check "ratings_PG" # /tmp/submission20120805-10801-rc5yqk/features/step_definitions/web_steps.rb:89 | |
| And I uncheck the following ratings: PG-13, G, NC-17 # /tmp/submission20120805-10801-rc5yqk/features/step_definitions/movie_steps.rb:24 | |
| And I press "ratings_submit" # /tmp/submission20120805-10801-rc5yqk/features/step_definitions/web_steps.rb:52 | |
| Then I should see "When Harry Met Sally" # /tmp/submission20120805-10801-rc5yqk/features/step_definitions/web_steps.rb:105 | |
| And I should see "The Incredibles" # /tmp/submission20120805-10801-rc5yqk/features/step_definitions/web_steps.rb:105 | |
| expected there to be content "The Incredibles" in "Rotten Potatoes!\nRotten Potatoes!\n\nAll Movies\n\n\n\nInclude:\nG\n\nPG\n\nPG-13\n\nNC-17\n\nR\n\n\nMovie Title\nRating\nRelease Date\nMore Info\nThe Terminator\nR\n1984-10-26 00:00:00 UTC\nMore about The Terminator\nWhen Harry Met Sally\nR\n1989-07-21 00:00:00 UTC\nMore about When Harry Met Sally\nAmelie\nR\n2001-04-25 00:00:00 UTC\nMore about Amelie\nAdd new movie\n\n\n" (RSpec::Expectations::ExpectationNotMetError) | |
| /tmp/submission20120805-10801-rc5yqk/features/step_definitions/web_steps.rb:107:in `/^(?:|I )should see "([^"]*)"$/' | |
| /tmp/submission20120805-10801-rc5yqk/features/filter_movie_list.feature:34:in `And I should see "The Incredibles"' | |
| But I should not see "Chocolat" # /tmp/submission20120805-10801-rc5yqk/features/step_definitions/web_steps.rb:123 | |
| And I should not see "Chicken Run" # /tmp/submission20120805-10801-rc5yqk/features/step_definitions/web_steps.rb:123 | |
| | |
| Scenario: no ratings selected # /tmp/submission20120805-10801-rc5yqk/features/filter_movie_list.feature:40 | |
| When I uncheck the following ratings: PG-13, G, NC-17, PG, R # /tmp/submission20120805-10801-rc5yqk/features/step_definitions/movie_steps.rb:24 | |
| And I press "ratings_submit" # /tmp/submission20120805-10801-rc5yqk/features/step_definitions/web_steps.rb:52 | |
| Then I should see none of the movies # /tmp/submission20120805-10801-rc5yqk/features/step_definitions/movie_steps.rb:33 | |
| | |
| Scenario: all ratings selected # /tmp/submission20120805-10801-rc5yqk/features/filter_movie_list.feature:45 | |
| When I check the following ratings: PG-13, G, NC-17, PG, R # /tmp/submission20120805-10801-rc5yqk/features/step_definitions/movie_steps.rb:24 | |
| And I press "ratings_submit" # /tmp/submission20120805-10801-rc5yqk/features/step_definitions/web_steps.rb:52 | |
| Then I should see all of the movies # /tmp/submission20120805-10801-rc5yqk/features/step_definitions/movie_steps.rb:33 | |
| | |
| Failing Scenarios: | |
| cucumber /tmp/submission20120805-10801-rc5yqk/features/filter_movie_list.feature:24 # Scenario: restrict to movies with "PG" or "R" ratings | |
| | |
| 3 scenarios (1 failed, 2 passed) | |
| 20 steps (1 failed, 2 skipped, 17 passed) | |
| 0m2.046s | |
Test failed. (-0.075) | |
-------------------------------------------------------------------------------- | |
Test passed. (+0.075) | |
-------------------------------------------------------------------------------- | |
Test passed. (+0.075) | |
-------------------------------------------------------------------------------- | |
Test passed. (+0.25) | |
-------------------------------------------------------------------------------- | |
The following required failures were not detected: | |
- sort movies alphabetically | |
- sort movies in increasing order of release date | |
with the following modifications: | |
- results reversed | |
| Disabling profiles... | |
| Disabling profiles... | |
| Feature: display list of movies sorted by different criteria | |
| | |
| As an avid moviegoer | |
| So that I can quickly browse movies based on my preferences | |
| I want to see movies sorted by title or release date | |
| | |
| Background: movies have been added to database # /tmp/submission20120805-10801-rc5yqk/features/sort_movie_list.feature:7 | |
| Given the following movies exist: # /tmp/submission20120805-10801-rc5yqk/features/step_definitions/movie_steps.rb:3 | |
| | title | rating | release_date | | |
| | Aladdin | G | 25-Nov-1992 | | |
| | The Terminator | R | 26-Oct-1984 | | |
| | When Harry Met Sally | R | 21-Jul-1989 | | |
| | The Help | PG-13 | 10-Aug-2011 | | |
| | Chocolat | PG-13 | 5-Jan-2001 | | |
| | Amelie | R | 25-Apr-2001 | | |
| | 2001: A Space Odyssey | G | 6-Apr-1968 | | |
| | The Incredibles | PG | 5-Nov-2004 | | |
| | Raiders of the Lost Ark | PG | 12-Jun-1981 | | |
| | Chicken Run | G | 21-Jun-2000 | | |
| And I am on the RottenPotatoes home page # /tmp/submission20120805-10801-rc5yqk/features/step_definitions/web_steps.rb:44 | |
| And I check the following ratings: PG-13, G, NC-17, PG, R # /tmp/submission20120805-10801-rc5yqk/features/step_definitions/movie_steps.rb:24 | |
| And I press "ratings_submit" # /tmp/submission20120805-10801-rc5yqk/features/step_definitions/web_steps.rb:52 | |
| | |
| Scenario: sort movies alphabetically # /tmp/submission20120805-10801-rc5yqk/features/sort_movie_list.feature:26 | |
| When I follow "Movie Title" # /tmp/submission20120805-10801-rc5yqk/features/step_definitions/web_steps.rb:56 | |
| Then I should see "Amelie" before "When Harry Met Sally" # /tmp/submission20120805-10801-rc5yqk/features/step_definitions/movie_steps.rb:14 | |
| | |
| Scenario: sort movies in increasing order of release date # /tmp/submission20120805-10801-rc5yqk/features/sort_movie_list.feature:30 | |
| When I follow "Release Date" # /tmp/submission20120805-10801-rc5yqk/features/step_definitions/web_steps.rb:56 | |
| Then I should see "When Harry Met Sally" before "The Help" # /tmp/submission20120805-10801-rc5yqk/features/step_definitions/movie_steps.rb:14 | |
| | |
| 2 scenarios (2 passed) | |
| 12 steps (12 passed) | |
| 0m1.984s | |
Test failed. (-0.25) | |
Total score: 0.6000000000000001 / 1.0 | |
Completed in 25.026123046 seconds. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment