Skip to content

Commit

Permalink
add test for pull request #17
Browse files Browse the repository at this point in the history
  • Loading branch information
jweiss committed May 12, 2011
1 parent e6f9c8f commit beb2b4a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/functional/deployments_controller_test.rb
Expand Up @@ -25,6 +25,12 @@ def test_should_not_get_new_if_deployment_not_possible
assert_response :redirect
end

def test_should_allow_to_prefil_description
get :new, :project_id => @project.id, :stage_id => @stage.id, :description => 'hello bert'
assert_response :success
assert_match /hello bert/, @response.body
end

def test_should_create_deployment_if_deployment_possbile
Deployment.delete_all
assert @stage.deployment_possible?
Expand Down

0 comments on commit beb2b4a

Please sign in to comment.