-
Notifications
You must be signed in to change notification settings - Fork 45
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
base: master
Are you sure you want to change the base?
Ampers Steffany #35
Conversation
MediaRanker RevistedWhat We're Looking For
|
User.count.must_equal start_count + 1 | ||
end | ||
|
||
it "redirects to the login route if given invalid user data" do |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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!" |
There was a problem hiding this comment.
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.
No description provided.