Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
Add Comment
Please, Sign In to add comment