-
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: Nora Peters #23
base: master
Are you sure you want to change the base?
Conversation
MediaRanker RevistedWhat We're Looking For
|
|
||
describe "logout" do | ||
|
||
it "can log out a logged in user" 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 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) } |
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 testing for guest users?
@@ -22,95 +38,199 @@ | |||
|
|||
describe "index" do | |||
it "succeeds when there are works" 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.
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
No description provided.