Created
April 12, 2011 03:07
-
-
Save lucianosousa/914842 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) Projects GET /projects works! (now write some real specs) | |
Failure/Error: response.status.should be(200) | |
expected #<Fixnum:401> => 200 | |
got #<Fixnum:605> => 302 | |
Compared using equal?, which compares object identity, | |
but expected and actual are not the same object. Use | |
'actual.should == expected' if you don't care about | |
object identity in this example. | |
# ./spec/requests/projects_spec.rb:8:in `block (3 levels) in <top (required)>' | |
class ProjectsController < ApplicationController | |
before_filter :authenticate_user! | |
# GET /projects | |
# GET /projects.xml | |
def index | |
@projects = Project.all | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment