schmurfy-bacon 1.4.1 → 1.4.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/bacon.rb +8 -2
- data/lib/bacon/version.rb +1 -1
- metadata +3 -8
data/lib/bacon.rb
CHANGED
@@ -333,8 +333,14 @@ class Should
|
|
333
333
|
name = "#{name}?" if name.to_s =~ /\w[^?]\z/
|
334
334
|
|
335
335
|
desc = @negated ? "not " : ""
|
336
|
-
|
337
|
-
|
336
|
+
if (name == :'==') || (name == :'!=')
|
337
|
+
desc << "#{name}\n"
|
338
|
+
desc << "#{@object.inspect}\n"
|
339
|
+
desc << "#{args[0].inspect}"
|
340
|
+
else
|
341
|
+
desc << @object.inspect << "." << name.to_s
|
342
|
+
desc << "(" << args.map{|x|x.inspect}.join(", ") << ") failed"
|
343
|
+
end
|
338
344
|
|
339
345
|
satisfy(desc) { |x| x.__send__(name, *args, &block) }
|
340
346
|
end
|
data/lib/bacon/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: schmurfy-bacon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-11-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: term-ansicolor
|
@@ -82,18 +82,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
82
82
|
- - ! '>='
|
83
83
|
- !ruby/object:Gem::Version
|
84
84
|
version: '0'
|
85
|
-
segments:
|
86
|
-
- 0
|
87
|
-
hash: 4527591756316638354
|
88
85
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
89
86
|
none: false
|
90
87
|
requirements:
|
91
88
|
- - ! '>='
|
92
89
|
- !ruby/object:Gem::Version
|
93
90
|
version: '0'
|
94
|
-
segments:
|
95
|
-
- 0
|
96
|
-
hash: 4527591756316638354
|
97
91
|
requirements: []
|
98
92
|
rubyforge_project:
|
99
93
|
rubygems_version: 1.8.24
|
@@ -101,3 +95,4 @@ signing_key:
|
|
101
95
|
specification_version: 3
|
102
96
|
summary: a small RSpec clone
|
103
97
|
test_files: []
|
98
|
+
has_rdoc:
|