Sha256: 1fa2cbe422aa23e83361e9cf09966a54f14befcafeb8288524ac90c4434d5b36

Contents?: true

Size: 772 Bytes

Versions: 85

Compression:

Stored size: 772 Bytes

Contents

require File.dirname(__FILE__) + '<%= '/..' * controller_class_name.split("::").length %>/test_helper'
require '<%= parent_folder_for_require %><%= controller_file_name %>_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

  #fixtures :data

  def setup
    @controller = <%= controller_class_name %>Controller.new
    @request    = ActionController::TestRequest.new
    @response   = ActionController::TestResponse.new
  end

  # TODO Replace this with your actual tests
  def test_show
    get :show
    assert_response :success
    assert_equal 'image/png', @response.headers['Content-Type']
  end
  
end

Version data entries

85 entries across 85 versions & 12 rubygems

Version Path
gruff-0.6.0 rails_generators/gruff/templates/functional_test.rb
jslade-gruff-0.3.5 rails_generators/gruff/templates/functional_test.rb
schapht-gruff-0.3.5 rails_generators/gruff/templates/functional_test.rb
topfunky-gruff-0.3.2 rails_generators/gruff/templates/functional_test.rb
topfunky-gruff-0.3.3 rails_generators/gruff/templates/functional_test.rb
topfunky-gruff-0.3.5 rails_generators/gruff/templates/functional_test.rb
umang-gruff-0.3.6 rails_generators/gruff/templates/functional_test.rb
woodhull-gruff-0.3.5 rails_generators/gruff/templates/functional_test.rb
gruff-0.5.1-java rails_generators/gruff/templates/functional_test.rb
gruff-0.5.1 rails_generators/gruff/templates/functional_test.rb
gruff-0.5.0-java rails_generators/gruff/templates/functional_test.rb
gruff-0.5.0 rails_generators/gruff/templates/functional_test.rb
gruff-0.4.0 rails_generators/gruff/templates/functional_test.rb
gruff-0.4.0-java rails_generators/gruff/templates/functional_test.rb
gruff-0.3.7 rails_generators/gruff/templates/functional_test.rb
fhs-gruff-0.3.6.2 rails_generators/gruff/templates/functional_test.rb
pfsc_gruff-0.3.6 rails_generators/gruff/templates/functional_test.rb
pfsc-gruff-0.3.6 rails_generators/gruff/templates/functional_test.rb
teejayvanslyke-gruff-0.4.1 rails_generators/gruff/templates/functional_test.rb
teejayvanslyke-gruff-0.4.0 rails_generators/gruff/templates/functional_test.rb