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 Steffany #35

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

Ampers Steffany #35

wants to merge 12 commits into from

Conversation

steffnay
Copy link

@steffnay steffnay commented May 1, 2018

No description provided.

@CheezItMan
Copy link

MediaRanker Revisted

What We're Looking For

Feature Feedback
General
Appropriate Tests on WorksController Pretty through, I left some small notes.
Appropriate Tests on SessionsController Pretty good
Appropriate Tests on UsersController No tests for guest users!
Completed OAuth Check!
Overall Nice work, you covered the learning goals here!

User.count.must_equal start_count + 1
end

it "redirects to the login route if given invalid user data" do

Choose a reason for hiding this comment

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

Maybe also test the flash notice here.

end
end

describe "logout" do

Choose a reason for hiding this comment

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

What if someone who's not logged in tries to log out?

@@ -2,4 +2,32 @@

describe UsersController do

describe "logged in users" do

Choose a reason for hiding this comment

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

What about guest users!

it "redirects to the work page if no user is logged in" do
post works_path
must_respond_with :redirect
flash[:result_text].must_equal "You must be logged in to see that page!"

Choose a reason for hiding this comment

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

Maybe a better message for some of these.

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