Created
November 26, 2008 01:28
-
-
Save joefiorini/29222 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
describe "handling GET /groups/not_found.xml 404" do | |
def do_get | |
request.env["HTTP_ACCEPT"] = "application/xml" | |
get :show, :id => "not_found" | |
end | |
it "should 404 if given group that doesn't exist" do | |
Group.stub!(:find_by_permalink!).and_return(nil) | |
do_get | |
response.code.should == "404" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment