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

Version Path
akitaonrails-resource_controller-0.5.2 test/test/functional/comments_controller_test.rb
akitaonrails-resource_controller-0.5.3 test/test/functional/comments_controller_test.rb
giraffesoft-resource_controller-0.4.10 test/test/functional/comments_controller_test.rb
giraffesoft-resource_controller-0.4.12 test/test/functional/comments_controller_test.rb
giraffesoft-resource_controller-0.4.9 test/test/functional/comments_controller_test.rb
giraffesoft-resource_controller-0.5.2 test/test/functional/comments_controller_test.rb
giraffesoft-resource_controller-0.5.3 test/test/functional/comments_controller_test.rb
kdmny-spree-0.0.1 vendor/plugins/resource_controller/test/test/functional/comments_controller_test.rb
korin-resource_controller-0.5.3 test/test/functional/comments_controller_test.rb
nileshtrivedi-lp_resource_builder-0.5.1 test/test/functional/comments_controller_test.rb
nileshtrivedi-lp_resource_builder-0.5.3 test/test/functional/comments_controller_test.rb
nileshtrivedi-safe_resource-0.5.3 test/test/functional/comments_controller_test.rb
pager-resource_controller-1.0.20080513 test/test/functional/comments_controller_test.rb
spree-0.11.4 vendor/plugins/resource_controller/test/test/functional/comments_controller_test.rb
spree-0.11.3 vendor/plugins/resource_controller/test/test/functional/comments_controller_test.rb
spree-0.8.4 vendor/plugins/resource_controller/test/test/functional/comments_controller_test.rb
spree-0.8.5 vendor/plugins/resource_controller/test/test/functional/comments_controller_test.rb
resource_controller-0.4.9 test/test/functional/comments_controller_test.rb
resource_controller-0.5.3 test/test/functional/comments_controller_test.rb
resource_controller-0.5.0 test/test/functional/comments_controller_test.rb