Sha256: 414e01dd266bb17465a2e747fe91aa63c9306c7628121090d5adc72a29dd09af

Contents?: true

Size: 821 Bytes

Versions: 2

Compression:

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

  # Replace this with your real tests.
  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

2 entries across 2 versions & 1 rubygems

Version Path
backlog-0.7.6 test/functional/parties_controller_test.rb
backlog-0.7.7 test/functional/parties_controller_test.rb