Guest User

Untitled

a guest
Feb 20th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. describe "new group" do
  2.  
  3. it "should show the form" do
  4. User.stub!(:authenticate).and_return(User.new())
  5. response = request(url(:perform_login), :method => "PUT", :params => { :login => 'xxx', :password => 'xxx' } )
  6.  
  7.  
  8. @response = request(resource(:groups, :new))
  9. @response.should be_successful
  10. @response.body.to_s.should have_tag(:form, :id => 'new-group')
  11. end
  12.  
  13. end
Add Comment
Please, Sign In to add comment