Skip to content

Instantly share code, notes, and snippets.

@lastobelus
Created November 13, 2008 00:12
Show Gist options
  • Save lastobelus/24318 to your computer and use it in GitHub Desktop.
Save lastobelus/24318 to your computer and use it in GitHub Desktop.
describe SageUsers, "(xml)" do
it "should not provide reset_password for xml" do
lambda { request('/reset_password/xxxyyy', :format => 'xml', :method => 'GET')}.
should raise_error(Merb::ControllerExceptions::NotAcceptable)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment