Permalink
Browse files

Re-enabling more subversion tests.

  • Loading branch information...
1 parent cfcf0a1 commit dfcdd1e524f2538844e73b1f5935cb88c3aa2f49 @jqr jqr committed Aug 29, 2008
Showing with 17 additions and 13 deletions.
  1. +5 −1 test/test_helper.rb
  2. +12 −12 test/unit/revisions/subversion_test.rb
View
@@ -23,4 +23,8 @@ def expect(expected_value, &block)
def create_subversion_repository_and_checkout
`svnadmin create test-subversion-repository && svn checkout file://$PWD/test-subversion-repository/ test-subversion-checkout && cd ./test-subversion-checkout && touch test && svn add test && svn commit -m 'Initial subversion import.'`
[`echo $PWD/test-subversion-repository`.chomp, `echo $PWD/test-subversion-checkout`.chomp]
-end
+end
+
+def current_user
+ ENV['USER']
+end
@@ -15,7 +15,7 @@ def setup
test 'should be able to build long message' do
cmt_msg = <<EOF
-[snitch] Revision 1 Committed by #{ENV['USER']}:
+[snitch] Revision 1 Committed by #{current_user}:
- Initial subversion import.
Changed Files:
@@ -24,18 +24,18 @@ def setup
assert_equal cmt_msg, @revision.to_s(:long)
end
-# test 'should be able to build short message' do
-# cmt_msg = "[conductor] Revision 100 Committed by deploy: - Drop additions "
-# assert_equal cmt_msg, @svnlook.to_s(:short)
-# end
-#
-# test 'should be able to find author' do
-# assert_equal 'deploy', @svnlook.author
-# end
+ test 'should be able to build short message' do
+ cmt_msg = "[snitch] Revision 1 Committed by #{current_user}: Initial subversion import. "
+ assert_equal cmt_msg, @revision.to_s(:short)
+ end
+
+ test 'should be able to find author' do
+ assert_equal current_user, @revision.author
+ end
- # test 'should be able to figure out project name' do
- # assert_equal 'conductor', @svnlook.project
- # end
+ test 'should be able to figure out project name' do
+ assert_equal 'snitch', @revision.project
+ end
def teardown
`rm -rf ./test-subversion-repository`

0 comments on commit dfcdd1e

Please sign in to comment.