Sha256: caf23850c6fa56db1dee46235b5f62d38494b956f02e68fdcfd8c0bd7af04e47
Contents?: true
Size: 805 Bytes
Versions: 3
Compression:
Stored size: 805 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 < ActionController::TestCase main_scenario 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
backlog-0.37.2 | test/functional/parties_controller_test.rb |
backlog-0.37.1 | test/functional/parties_controller_test.rb |
backlog-0.36.2 | test/functional/parties_controller_test.rb |