Sha256: 06227f785c4abd44ea1ca7dcd3b4afe303edc4abac748b1c96dcb9f9ba9703b8

Contents?: true

Size: 783 Bytes

Versions: 32

Compression:

Stored size: 783 Bytes

Contents

require File.dirname(__FILE__) + '/../test_helper'
require 'somethings_controller'

# Re-raise errors caught by the controller.
class SomethingsController; def rescue_action(e) raise e end; end

class SomethingsControllerTest < Test::Unit::TestCase
  def setup
    @controller = SomethingsController.new
    @request    = ActionController::TestRequest.new
    @response   = ActionController::TestResponse.new
    @something  = somethings :one
  end

  context "actions specified" do
    [:create, :edit, :update, :destroy, :new].each do |action|
      should "not respond to #{action}" do
        assert !@controller.respond_to?(action)
      end
    end
  end
  
  should_be_restful do |resource|
    resource.formats = [:html]
    
    resource.actions = [:index, :show]
  end
end

Version data entries

32 entries across 32 versions & 8 rubygems

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