From: | "Diego Petteno (flameeyes)" <flameeyes@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-ruby/matchy/files: matchy-0.4.2-order.patch |
Date: | Thu, 28 Jan 2010 01:15:25 |
Message-Id: | E1NaIyh-0000bx-Fh@stork.gentoo.org |
1 | flameeyes 10/01/28 01:15:23 |
2 | |
3 | Added: matchy-0.4.2-order.patch |
4 | Log: |
5 | Initial import of (mcmire-)matchy, needed for crack's testsuite. |
6 | (Portage version: 2.2_rc61/cvs/Linux x86_64) |
7 | |
8 | Revision Changes Path |
9 | 1.1 dev-ruby/matchy/files/matchy-0.4.2-order.patch |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/matchy/files/matchy-0.4.2-order.patch?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/matchy/files/matchy-0.4.2-order.patch?rev=1.1&content-type=text/plain |
13 | |
14 | Index: matchy-0.4.2-order.patch |
15 | =================================================================== |
16 | Index: matchy-0.4.2/test/test_operator_expectations.rb |
17 | =================================================================== |
18 | --- matchy-0.4.2.orig/test/test_operator_expectations.rb |
19 | +++ matchy-0.4.2/test/test_operator_expectations.rb |
20 | @@ -156,12 +156,13 @@ class TestOperatorExpectations < Test::U |
21 | end |
22 | |
23 | def test_fail_message_for_hash |
24 | - obj = Matchy::Expectations::OperatorExpectation.new({:foo => 'bar', :baz => 'quux'}, true) |
25 | + hash = {:foo => 'bar', :baz => 'quux'} |
26 | + obj = Matchy::Expectations::OperatorExpectation.new(hash, true) |
27 | |
28 | def obj.flunk(msg) |
29 | msg |
30 | end |
31 | |
32 | - (obj == {:foo => 'bar'}).should == "Expected {:baz=>\"quux\", :foo=>\"bar\"} to == {:foo=>\"bar\"} (diff: {:baz=>\"quux\"})." |
33 | + (obj == {:foo => 'bar'}).should == "Expected #{hash.inspect} to == {:foo=>\"bar\"} (diff: {:baz=>\"quux\"})." |
34 | end |
35 | end |