1 require File.dirname(__FILE__) + '/../test_helper'
2 require 'sparklines_controller'
4 # Re-raise errors caught by the controller.
5 class SparklinesController; def rescue_action(e) raise e end; end
7 class SparklinesControllerTest < Test::Unit::TestCase
12 @controller = SparklinesController.new
13 @request = ActionController::TestRequest.new
14 @response = ActionController::TestResponse.new
18 get :index, :results => "1,2,3,4,5", :type => 'bar', :line_color => 'black'
19 assert_response :success
20 assert_equal 'image/png', @response.headers['Content-Type']
23 # TODO Replace this with your actual tests
26 assert_response :success
27 assert_equal 'image/png', @response.headers['Content-Type']