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

Version Path
backlog-0.10.1 test/functional/parties_controller_test.rb
backlog-0.10.0 test/functional/parties_controller_test.rb
backlog-0.10.5 test/functional/parties_controller_test.rb
backlog-0.10.3 test/functional/parties_controller_test.rb
backlog-0.10.2 test/functional/parties_controller_test.rb
backlog-0.10.4 test/functional/parties_controller_test.rb
backlog-0.10.6 test/functional/parties_controller_test.rb
backlog-0.10.7 test/functional/parties_controller_test.rb
backlog-0.11.0 test/functional/parties_controller_test.rb
backlog-0.10.8 test/functional/parties_controller_test.rb
backlog-0.12.0 test/functional/parties_controller_test.rb
backlog-0.12.1 test/functional/parties_controller_test.rb
backlog-0.12.2 test/functional/parties_controller_test.rb
backlog-0.12.4 test/functional/parties_controller_test.rb
backlog-0.12.3 test/functional/parties_controller_test.rb
backlog-0.14.0 test/functional/parties_controller_test.rb
backlog-0.13.1 test/functional/parties_controller_test.rb
backlog-0.13.0 test/functional/parties_controller_test.rb
backlog-0.14.2 test/functional/parties_controller_test.rb
backlog-0.14.1 test/functional/parties_controller_test.rb