Permalink
Browse files

Added a test for deleting a build without a commit

  • Loading branch information...
richmeyers committed Oct 20, 2011
1 parent 48d697a commit e05a45d3e51c7f010808a60c1d9eab007b856a95
Showing with 8 additions and 0 deletions.
  1. +8 −0 test/acceptance/build_without_commit_test.rb
@@ -25,4 +25,12 @@ class BuildWithoutCommitTest < Test::Unit::AcceptanceTestCase
assert_equal 200, response_code
assert_contain("(commit is missing)")
end
+
+ scenario 'Deleting a build without commit' do
+ login_as "admin", "test"
+ visit "/buggy/builds/#{@build.id}"
+ click_button "Delete this build"
+
+ assert_not_contain("Previous builds")
+ end
end

0 comments on commit e05a45d

Please sign in to comment.