Sha256: fe1783a9d01bad8e48e31867f6466d2b2aad986d5629c23deb16c76d41b2a2db
Contents?: true
Size: 782 Bytes
Versions: 29
Compression:
Stored size: 782 Bytes
Contents
require File.dirname(__FILE__) + '/../test_helper' require 'parties_controller' # Re-raise errors caught by the controller. class PartiesController; def rescue_action(e) raise e end; end class PartiesControllerTest < Test::Unit::TestCase def setup @controller = PartiesController.new @request = ActionController::TestRequest.new @response = ActionController::TestResponse.new end def test_burn_down_chart get :burn_down_chart, :id => 1 end def test_burn_down_chart_no_period get :burn_down_chart, :id => 2 assert_response 404 end def test_burn_down_chart_unknown_party begin get :burn_down_chart, :id => 3 fail "Should raise exception" rescue ActiveRecord::RecordNotFound assert true end end end
Version data entries
29 entries across 29 versions & 1 rubygems