Guest User

Untitled

a guest
Jun 19th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1.  
  2. ## spec/controllers/cats_controller_spec.rb
  3.  
  4. require 'spec_helper'
  5.  
  6. describe CatsController do
  7.  
  8. describe "GET 'index'" do
  9. it "should be successful" do
  10. get 'index'
  11. response.should be_success
  12. end
  13. end
  14.  
  15. describe "GET 'show'" do
  16. it "should be successful" do
  17. get 'show'
  18. response.should be_success
  19. end
  20. end
  21.  
  22. describe "GET 'edit'" do
  23. it "should be successful" do
  24. get 'edit'
  25. response.should be_success
  26. end
  27. end
  28.  
  29. describe "GET 'update'" do
  30. it "should be successful" do
  31. get 'update'
  32. response.should be_success
  33. end
  34. end
  35.  
  36. describe "GET 'delete'" do
  37. it "should be successful" do
  38. get 'delete'
  39. response.should be_success
  40. end
  41. end
  42.  
  43. end
  44.  
  45.  
  46. # spec/helpers/cats_helper_spec.rb
  47. #
  48. # Specs in this file have access to a helper object that includes
  49. # the CatsHelper. For example:
  50. #
  51. # describe CatsHelper do
  52. # describe "string concat" do
  53. # it "concats two strings with spaces" do
  54. # helper.concat_strings("this","that").should == "this that"
  55. # end
  56. # end
  57. # end
  58. describe CatsHelper do
  59. pending "add some examples to (or delete) #{__FILE__}"
  60. end
  61.  
  62.  
  63. # spec/views/cats/index.html.erb_spec.rb
  64. require 'spec_helper'
  65.  
  66. describe "cats/index.html.erb" do
  67. pending "add some examples to (or delete) #{__FILE__}"
  68. end
Add Comment
Please, Sign In to add comment