Sha256: 619e2fa76ca02391e3288fab2c0995be0fbdc3438c74fca371008a01cf46abb2
Contents?: true
Size: 671 Bytes
Versions: 33
Compression:
Stored size: 671 Bytes
Contents
require File.dirname(__FILE__) + '/../test_helper' require 'comments_controller' # Re-raise errors caught by the controller. class CommentsController; def rescue_action(e) raise e end; end class CommentsControllerTest < Test::Unit::TestCase def setup @controller = CommentsController.new @request = ActionController::TestRequest.new @response = ActionController::TestResponse.new @comment = Comment.find 1 end context "with parent post" do should_be_restful do |resource| resource.formats = [:html] resource.parent = :post end end should_be_restful do |resource| resource.formats = [:html] end end
Version data entries
33 entries across 33 versions & 9 rubygems