ruby-tdb user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [ANN] Ruby tdb 0.6.4 - update URLs
@ 2020-02-21  3:07  5% Eric Wong
  0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2020-02-21  3:07 UTC (permalink / raw)
  To: ruby-tdb-public

bogomips.org is expiring and I can't afford to renew
it or support ICANN+cronies, so update our docs to match.

   Ruby tdb 0.6.4

   6 changes since v0.6.2 (2014-10-03):

         doc: switch to olddoc for the website
         test/test_tdb_mt.rb: fix fragile test
         doc: update URLs to avoid redirects
         pkg.mk: website: dark216 to save electricity
         doc: s/bogomips.org/yhbt.net/
         gemspec: remove olddoc from build dependencies

   Note: 0.6.3 was skipped due to a broken gemspec)

^ permalink raw reply	[relevance 5%]

* [PATCH] test/test_tdb_mt.rb: fix fragile test
@ 2018-04-29 21:59  7% Eric Wong
  0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2018-04-29 21:59 UTC (permalink / raw)
  To: ruby-tdb-public; +Cc: Eric Wong

Method#inspect has changed in modern Ruby, so try to make test
less fragile.
---
 test/test_tdb_mt.rb | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/test/test_tdb_mt.rb b/test/test_tdb_mt.rb
index 781e2bd..7f8611c 100644
--- a/test/test_tdb_mt.rb
+++ b/test/test_tdb_mt.rb
@@ -90,7 +90,10 @@ class Test_TDB_MT < Test::Unit::TestCase
     @tdb = TDB.new(nil)
     respond_to?(:refute_match) and
       m.each { |meth| refute_match(/\bTDB::MT\b/, @tdb.method(meth).to_s) }
+    before = m.map { |meth| [ meth, @tdb.method(meth).to_s ] }
     @tdb.threadsafe!
-    m.each { |meth| assert_match(/\bTDB::MT\b/, @tdb.method(meth).to_s) }
+    before.each do |(meth, old)|
+      refute_equal old, @tdb.method(meth).to_s
+    end
   end
 end
-- 
EW


^ permalink raw reply related	[relevance 7%]

Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2018-04-29 21:59  7% [PATCH] test/test_tdb_mt.rb: fix fragile test Eric Wong
2020-02-21  3:07  5% [ANN] Ruby tdb 0.6.4 - update URLs Eric Wong

Code repositories for project(s) associated with this public inbox

	https://yhbt.net/ruby-tdb.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).