Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ampers: Nora Peters #23

Open
wants to merge 35 commits into
base: master
Choose a base branch
from
Open

Ampers: Nora Peters #23

wants to merge 35 commits into from

Conversation

npeters5
Copy link

@npeters5 npeters5 commented May 1, 2018

No description provided.

npeters5 added 30 commits April 16, 2018 17:30
@CheezItMan
Copy link

MediaRanker Revisted

What We're Looking For

Feature Feedback
General
Appropriate Tests on WorksController No Tests for Guest Users, The logged in users tests work
Appropriate Tests on SessionsController Ditto from above
Appropriate Tests on UsersController Again no tests for guests
Completed OAuth Well done here
Overall Pretty good but you didn't write tests to verify that guest users couldn't access routes they weren't allowed in.


describe "logout" do

it "can log out a logged in user" do

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about logged out users? What happens when they try to log out.

@@ -1,5 +1,42 @@
require 'test_helper'

describe UsersController do
let(:ada) { users(:ada) }

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about testing for guest users?

@@ -22,95 +38,199 @@

describe "index" do
it "succeeds when there are works" do

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't have any tests for guest users. A good test for a guest user would look like:

  get works_path

  flash[:error].must_equal "You must be logged in to see this page"
  must_respond_with :redirect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants