Sha256: bc043f5f7fc9bdabfb561e10822da4645d2d3102ab719f5b4dc8b6f0bdc7ca08

Contents?: true

Size: 690 Bytes

Versions: 84

Compression:

Stored size: 690 Bytes

Contents

require File.dirname(__FILE__) + '<%= '/..' * controller_class_nesting_depth %>/../test_helper'
require '<%= controller_file_path %>_controller'

# Re-raise errors caught by the controller.
class <%= controller_class_name %>Controller; def rescue_action(e) raise e end; end

class <%= controller_class_name %>ControllerTest < Test::Unit::TestCase
  def setup
    @controller           = <%= controller_class_name %>Controller.new
    @request              = ActionController::TestRequest.new
    @response             = ActionController::TestResponse.new
    @<%= singular_name %> = <%= plural_name %> :one
  end

  should_be_restful do |resource|
    resource.formats = [:html]
  end

end

Version data entries

84 entries across 84 versions & 23 rubygems

Version Path
akitaonrails-resource_controller-0.5.2 generators/scaffold_resource/templates/shoulda_functional_test.rb
akitaonrails-resource_controller-0.5.3 generators/scaffold_resource/templates/shoulda_functional_test.rb
csmosx-resource_controller-0.6.6 generators/scaffold_resource/templates/shoulda_functional_test.rb
csmosx-resource_controller-0.6.7 generators/scaffold_resource/templates/shoulda_functional_test.rb
dkubb-resource_controller-0.6.5 generators/scaffold_resource/templates/shoulda_functional_test.rb
giraffesoft-resource_controller-0.4.10 generators/scaffold_resource/templates/shoulda_functional_test.rb
giraffesoft-resource_controller-0.4.12 generators/scaffold_resource/templates/shoulda_functional_test.rb
giraffesoft-resource_controller-0.4.9 generators/scaffold_resource/templates/shoulda_functional_test.rb
giraffesoft-resource_controller-0.5.2 generators/scaffold_resource/templates/shoulda_functional_test.rb
giraffesoft-resource_controller-0.5.3 generators/scaffold_resource/templates/shoulda_functional_test.rb
giraffesoft-resource_controller-0.5.5 generators/scaffold_resource/templates/shoulda_functional_test.rb
giraffesoft-resource_controller-0.5.6 generators/scaffold_resource/templates/shoulda_functional_test.rb
giraffesoft-resource_controller-0.6.0 generators/scaffold_resource/templates/shoulda_functional_test.rb
giraffesoft-resource_controller-0.6.1 generators/scaffold_resource/templates/shoulda_functional_test.rb
giraffesoft-resource_controller-0.6.5 generators/scaffold_resource/templates/shoulda_functional_test.rb
jeffrafter-resource_controller-0.5.5 generators/scaffold_resource/templates/shoulda_functional_test.rb
kdmny-spree-0.0.1 vendor/plugins/resource_controller/generators/scaffold_resource/templates/shoulda_functional_test.rb
korin-resource_controller-0.5.3 generators/scaffold_resource/templates/shoulda_functional_test.rb
maser-resource_controller-0.6.6 generators/scaffold_resource/templates/shoulda_functional_test.rb
nileshtrivedi-lp_resource_builder-0.5.1 generators/scaffold_resource/templates/shoulda_functional_test.rb