Skip to content

Instantly share code, notes, and snippets.

@cilquirm
Created October 21, 2008 04:17
Show Gist options
  • Save cilquirm/18248 to your computer and use it in GitHub Desktop.
Save cilquirm/18248 to your computer and use it in GitHub Desktop.
describe "new group" do
it "should show the form" do
User.stub!(:authenticate).and_return(User.new())
response = request(url(:perform_login), :method => "PUT", :params => { :login => 'xxx', :password => 'xxx' } )
@response = request(resource(:groups, :new))
@response.should be_successful
@response.body.to_s.should have_tag(:form, :id => 'new-group')
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment