Permalink
Browse files

add test for pull request #17

  • Loading branch information...
1 parent e6f9c8f commit beb2b4ab8b45bff0517c4abc61c833f7b07569e3 @jweiss jweiss committed May 12, 2011
Showing with 6 additions and 0 deletions.
  1. +6 −0 test/functional/deployments_controller_test.rb
@@ -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?

0 comments on commit beb2b4a

Please sign in to comment.