1 require File.dirname(__FILE__) + '/../test_helper'
2 require 'graphs_controller'
4 # Re-raise errors caught by the controller.
5 class GraphsController; def rescue_action(e) raise e end; end
7 class GraphsControllerTest < Test::Unit::TestCase
12 @controller = GraphsController.new
13 @request = ActionController::TestRequest.new
14 @response = ActionController::TestResponse.new
17 # TODO Replace this with your actual tests
20 assert_response :success
21 assert_equal 'image/png', @response.headers['Content-Type']