Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## spec/controllers/cats_controller_spec.rb
- require 'spec_helper'
- describe CatsController do
- describe "GET 'index'" do
- it "should be successful" do
- get 'index'
- response.should be_success
- end
- end
- describe "GET 'show'" do
- it "should be successful" do
- get 'show'
- response.should be_success
- end
- end
- describe "GET 'edit'" do
- it "should be successful" do
- get 'edit'
- response.should be_success
- end
- end
- describe "GET 'update'" do
- it "should be successful" do
- get 'update'
- response.should be_success
- end
- end
- describe "GET 'delete'" do
- it "should be successful" do
- get 'delete'
- response.should be_success
- end
- end
- end
- # spec/helpers/cats_helper_spec.rb
- #
- # Specs in this file have access to a helper object that includes
- # the CatsHelper. For example:
- #
- # describe CatsHelper do
- # describe "string concat" do
- # it "concats two strings with spaces" do
- # helper.concat_strings("this","that").should == "this that"
- # end
- # end
- # end
- describe CatsHelper do
- pending "add some examples to (or delete) #{__FILE__}"
- end
- # spec/views/cats/index.html.erb_spec.rb
- require 'spec_helper'
- describe "cats/index.html.erb" do
- pending "add some examples to (or delete) #{__FILE__}"
- end
Add Comment
Please, Sign In to add comment