Sha256: 1e04d39226f1ef58d571d10bdfcda0e8e830853046a0f79b43af38b8f4bf37d1

Contents?: true

Size: 799 Bytes

Versions: 44

Compression:

Stored size: 799 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
  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

44 entries across 44 versions & 1 rubygems

Version Path
backlog-0.14.3 test/functional/parties_controller_test.rb
backlog-0.14.4 test/functional/parties_controller_test.rb
backlog-0.15.0 test/functional/parties_controller_test.rb
backlog-0.15.1 test/functional/parties_controller_test.rb
backlog-0.16.0 test/functional/parties_controller_test.rb
backlog-0.17.0 test/functional/parties_controller_test.rb
backlog-0.17.1 test/functional/parties_controller_test.rb
backlog-0.17.2 test/functional/parties_controller_test.rb
backlog-0.17.4 test/functional/parties_controller_test.rb
backlog-0.17.3 test/functional/parties_controller_test.rb
backlog-0.17.5 test/functional/parties_controller_test.rb
backlog-0.17.6 test/functional/parties_controller_test.rb
backlog-0.18.0 test/functional/parties_controller_test.rb
backlog-0.19.0 test/functional/parties_controller_test.rb
backlog-0.20.0 test/functional/parties_controller_test.rb
backlog-0.20.1 test/functional/parties_controller_test.rb
backlog-0.21.0 test/functional/parties_controller_test.rb
backlog-0.21.1 test/functional/parties_controller_test.rb
backlog-0.21.2 test/functional/parties_controller_test.rb
backlog-0.21.3 test/functional/parties_controller_test.rb