Guest User

Untitled

a guest
Feb 21st, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. Project.first(:permalink => "integrity").should be_nil
  2.  
  3. login_as "admin", "test"
  4.  
  5. get "/new"
  6.  
  7. fill_in "Name", :with => "Integrity"
  8. fill_in "Git repository", :with => "git://github.com/foca/integrity.git"
  9. fill_in "Branch to track", :with => "master"
  10. fill_in "Build script", :with => "rake"
  11. check "Public project"
  12. click_button "Create Project"
  13.  
  14. puts response_body
  15. #debugger
  16.  
  17. current_url.should == "/integrity"
  18. response_code.should == 200
  19. Project.first(:permalink => "integrity").should_not be_nil
  20.  
  21. log_out
  22. get "/integrity"
  23.  
  24. current_url.should == "/integrity"
  25. response_code.should == 200
Add Comment
Please, Sign In to add comment