subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stef...@apache.org
Subject svn commit: r1517532 - /subversion/trunk/subversion/bindings/swig/ruby/test/test_fs.rb
Date Mon, 26 Aug 2013 12:55:43 GMT
Author: stefan2
Date: Mon Aug 26 12:55:43 2013
New Revision: 1517532

URL: http://svn.apache.org/r1517532
Log:
Fix Ruby tests: Adapt to stricter TXN_ID checks.

* subversion/bindings/swig/ruby/test/test_fs.rb
  (test_transaction): distinuish between malformed and unknown TXN_IDs

Modified:
    subversion/trunk/subversion/bindings/swig/ruby/test/test_fs.rb

Modified: subversion/trunk/subversion/bindings/swig/ruby/test/test_fs.rb
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/bindings/swig/ruby/test/test_fs.rb?rev=1517532&r1=1517531&r2=1517532&view=diff
==============================================================================
--- subversion/trunk/subversion/bindings/swig/ruby/test/test_fs.rb (original)
+++ subversion/trunk/subversion/bindings/swig/ruby/test/test_fs.rb Mon Aug 26 12:55:43 2013
@@ -209,10 +209,14 @@ class SvnFsTest < Test::Unit::TestCase
       ctx.commit(@wc_path)
     end
 
-    assert_raises(Svn::Error::FsNoSuchTransaction) do
+    assert_raises(Svn::Error::FsMalformedTxnId) do
       @fs.open_txn("NOT-EXIST")
     end
 
+    assert_raises(Svn::Error::FsNoSuchTransaction) do
+      @fs.open_txn("9-9")
+    end
+
     start_time = Time.now
     txn1 = @fs.transaction
     assert_equal([Svn::Core::PROP_REVISION_DATE], txn1.proplist.keys)



Mime
View raw message