Sha256: 1abc5a9559d3a8a505931bf62c74bd540bb28b35a00b49192b9c62c380ef8783
Contents?: true
Size: 677 Bytes
Versions: 12
Compression:
Stored size: 677 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 < ActionController::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
12 entries across 12 versions & 7 rubygems