Skip to content

Instantly share code, notes, and snippets.

@lucianosousa
Created April 12, 2011 03:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lucianosousa/914842 to your computer and use it in GitHub Desktop.
Save lucianosousa/914842 to your computer and use it in GitHub Desktop.
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