Skip to content

Instantly share code, notes, and snippets.

@rbatta
Created August 7, 2013 01:06
Show Gist options
  • Save rbatta/6170357 to your computer and use it in GitHub Desktop.
Save rbatta/6170357 to your computer and use it in GitHub Desktop.
Autograder output file
All scenarios passed prior to upload.
On Time --------------------------------------------------------------------------------
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/submission20130807-18462-106p541/features/filter_movie_list.feature:7
| Given the following movies exist: # /tmp/submission20130807-18462-106p541/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/submission20130807-18462-106p541/features/step_definitions/web_steps.rb:44
|
| Scenario: restrict to movies with 'PG' or 'R' ratings # /tmp/submission20130807-18462-106p541/features/filter_movie_list.feature:24
| When I check the following ratings: PG, R # /tmp/submission20130807-18462-106p541/features/step_definitions/movie_steps.rb:24
| And I uncheck the following ratings: G, PG-13, NC-17 # /tmp/submission20130807-18462-106p541/features/step_definitions/movie_steps.rb:24
| And I press "Refresh" # /tmp/submission20130807-18462-106p541/features/step_definitions/web_steps.rb:52
| Then I should see movies with ratings: PG, R # /tmp/submission20130807-18462-106p541/features/step_definitions/movie_steps.rb:34
| expected ["PG", "R"] to include "G" (RSpec::Expectations::ExpectationNotMetError)
| /tmp/submission20130807-18462-106p541/features/step_definitions/movie_steps.rb:38:in `block (2 levels) in <top (required)>'
| /tmp/submission20130807-18462-106p541/features/step_definitions/movie_steps.rb:38:in `each'
| /tmp/submission20130807-18462-106p541/features/step_definitions/movie_steps.rb:38:in `/I should( not)? see movies with ratings: (.*)/'
| /tmp/submission20130807-18462-106p541/features/filter_movie_list.feature:28:in `Then I should see movies with ratings: PG, R'
| And I should not see movies with ratings: G, PG-13, NC-17 # /tmp/submission20130807-18462-106p541/features/step_definitions/movie_steps.rb:34
|
| # enter step(s) to check the 'PG' and 'R' checkboxes
| # enter step(s) to uncheck all other checkboxes
| # enter step to "submit" the search form on the homepage
| # enter step(s) to ensure that PG and R movies are visible
| # enter step(s) to ensure that other movies are not visible
| Scenario: no ratings selected # /tmp/submission20130807-18462-106p541/features/filter_movie_list.feature:37
|
| # see assignment
| Scenario: all ratings selected # /tmp/submission20130807-18462-106p541/features/filter_movie_list.feature:40
| When I check the following ratings: G, PG, PG-13, R # /tmp/submission20130807-18462-106p541/features/step_definitions/movie_steps.rb:24
| And I press "Refresh" # /tmp/submission20130807-18462-106p541/features/step_definitions/web_steps.rb:52
| Then I should see movies with ratings: G, PG, PG-13, R # /tmp/submission20130807-18462-106p541/features/step_definitions/movie_steps.rb:34
|
| Failing Scenarios:
| cucumber /tmp/submission20130807-18462-106p541/features/filter_movie_list.feature:24 # Scenario: restrict to movies with 'PG' or 'R' ratings
|
| 3 scenarios (1 failed, 2 passed)
| 14 steps (1 failed, 1 skipped, 12 passed)
| 0m1.239s
Test failed. (-0.075)
--------------------------------------------------------------------------------
The following required failures were not detected:
- restrict to movies with 'PG' or 'R' ratings
- 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/submission20130807-18462-106p541/features/filter_movie_list.feature:7
| Given the following movies exist: # /tmp/submission20130807-18462-106p541/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/submission20130807-18462-106p541/features/step_definitions/web_steps.rb:44
|
| Scenario: restrict to movies with 'PG' or 'R' ratings # /tmp/submission20130807-18462-106p541/features/filter_movie_list.feature:24
| When I check the following ratings: PG, R # /tmp/submission20130807-18462-106p541/features/step_definitions/movie_steps.rb:24
| And I uncheck the following ratings: G, PG-13, NC-17 # /tmp/submission20130807-18462-106p541/features/step_definitions/movie_steps.rb:24
| And I press "Refresh" # /tmp/submission20130807-18462-106p541/features/step_definitions/web_steps.rb:52
| Then I should see movies with ratings: PG, R # /tmp/submission20130807-18462-106p541/features/step_definitions/movie_steps.rb:34
| And I should not see movies with ratings: G, PG-13, NC-17 # /tmp/submission20130807-18462-106p541/features/step_definitions/movie_steps.rb:34
|
| # enter step(s) to check the 'PG' and 'R' checkboxes
| # enter step(s) to uncheck all other checkboxes
| # enter step to "submit" the search form on the homepage
| # enter step(s) to ensure that PG and R movies are visible
| # enter step(s) to ensure that other movies are not visible
| Scenario: no ratings selected # /tmp/submission20130807-18462-106p541/features/filter_movie_list.feature:37
|
| # see assignment
| Scenario: all ratings selected # /tmp/submission20130807-18462-106p541/features/filter_movie_list.feature:40
| When I check the following ratings: G, PG, PG-13, R # /tmp/submission20130807-18462-106p541/features/step_definitions/movie_steps.rb:24
| And I press "Refresh" # /tmp/submission20130807-18462-106p541/features/step_definitions/web_steps.rb:52
| Then I should see movies with ratings: G, PG, PG-13, R # /tmp/submission20130807-18462-106p541/features/step_definitions/movie_steps.rb:34
|
| 3 scenarios (3 passed)
| 14 steps (14 passed)
| 0m1.141s
Test failed. (-0.075)
--------------------------------------------------------------------------------
Test passed. (+0.075)
--------------------------------------------------------------------------------
Test passed. (+0.075)
--------------------------------------------------------------------------------
Test passed. (+0.25)
--------------------------------------------------------------------------------
Test passed. (+0.25)
Total score: 0.8500000000000001 / 1.0
Completed in 18.903538852 seconds.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment