]> projects.mako.cc - selectricity-live/blob - test/functional/graphs_controller_test.rb
Modified graphs to ahve a 4 color scheme, but it isn't the full palette of selectrici...
[selectricity-live] / test / functional / graphs_controller_test.rb
1 require File.dirname(__FILE__) + '/../test_helper'
2 require 'graphs_controller'
3
4 # Re-raise errors caught by the controller.
5 class GraphsController; def rescue_action(e) raise e end; end
6
7 class GraphsControllerTest < Test::Unit::TestCase
8
9   #fixtures :data
10
11   def setup
12     @controller = GraphsController.new
13     @request    = ActionController::TestRequest.new
14     @response   = ActionController::TestResponse.new
15   end
16
17   # TODO Replace this with your actual tests
18   def test_show
19     get :show
20     assert_response :success
21     assert_equal 'image/png', @response.headers['Content-Type']
22   end
23   
24 end

Benjamin Mako Hill || Want to submit a patch?