~ubuntu-branches/debian/sid/subversion/sid

« back to all changes in this revision

Viewing changes to subversion/bindings/swig/ruby/test/my-assertions.rb

  • Committer: Package Import Robot
  • Author(s): James McCoy, Peter Samuelson, James McCoy
  • Date: 2014-01-12 19:48:33 UTC
  • mfrom: (0.2.10)
  • Revision ID: package-import@ubuntu.com-20140112194833-w3axfwksn296jn5x
Tags: 1.8.5-1
[ Peter Samuelson ]
* New upstream release.  (Closes: #725787) Rediff patches:
  - Remove apr-abi1 (applied upstream), rename apr-abi2 to apr-abi
  - Remove loosen-sqlite-version-check (shouldn't be needed)
  - Remove java-osgi-metadata (applied upstream)
  - svnmucc prompts for a changelog if none is provided. (Closes: #507430)
  - Remove fix-bdb-version-detection, upstream uses "apu-config --dbm-libs"
  - Remove ruby-test-wc (applied upstream)
  - Fix “svn diff -r N file” when file has svn:mime-type set.
    (Closes: #734163)
  - Support specifying an encoding for mod_dav_svn's environment in which
    hooks are run.  (Closes: #601544)
  - Fix ordering of “svnadmin dump” paths with certain APR versions.
    (Closes: #687291)
  - Provide a better error message when authentication fails with an
    svn+ssh:// URL.  (Closes: #273874)
  - Updated Polish translations.  (Closes: #690815)

[ James McCoy ]
* Remove all traces of libneon, replaced by libserf.
* patches/sqlite_3.8.x_workaround: Upstream fix for wc-queries-test test
  failurse.
* Run configure with --with-apache-libexecdir, which allows removing part of
  patches/rpath.
* Re-enable auth-test as upstream has fixed the problem of picking up
  libraries from the environment rather than the build tree.
  (Closes: #654172)
* Point LD_LIBRARY_PATH at the built auth libraries when running the svn
  command during the build.  (Closes: #678224)
* Add a NEWS entry describing how to configure mod_dav_svn to understand
  UTF-8.  (Closes: #566148)
* Remove ancient transitional package, libsvn-ruby.
* Enable compatibility with Sqlite3 versions back to Wheezy.
* Enable hardening flags.  (Closes: #734918)
* patches/build-fixes: Enable verbose build logs.
* Build against the default ruby version.  (Closes: #722393)

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
  module Unit
25
25
    module Assertions
26
26
 
 
27
      # make an intermediary assertion block handler
 
28
      def _my_assert_block(&block)
 
29
       if RUBY_VERSION > '1.9'
 
30
         assert_block do
 
31
           yield
 
32
         end
 
33
       else
 
34
         _wrap_assertion do
 
35
           yield
 
36
         end
 
37
       end
 
38
      end
 
39
 
27
40
      def assert_true(boolean, message=nil)
28
 
        _wrap_assertion do
 
41
        _my_assert_block do
29
42
          assert_equal(true, boolean, message)
30
43
        end
31
44
      end
32
45
 
33
46
      def assert_false(boolean, message=nil)
34
 
        _wrap_assertion do
 
47
        _my_assert_block do
35
48
          assert_equal(false, boolean, message)
36
49
        end
37
50
      end
38
51
 
39
52
      def assert_nested_sorted_array(expected, actual, message=nil)
40
 
        _wrap_assertion do
 
53
        _my_assert_block do
41
54
          assert_equal(expected.collect {|elem| elem.sort},
42
55
                       actual.collect {|elem| elem.sort},
43
56
                       message)
45
58
      end
46
59
 
47
60
      def assert_equal_log_entries(expected, actual, message=nil)
48
 
        _wrap_assertion do
 
61
        _my_assert_block do
49
62
          actual = actual.collect do |entry|
50
63
            changed_paths = entry.changed_paths
51
64
            changed_paths.each_key do |path|