insist 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@ Gem::Specification.new do |spec|
2
2
  files = %x{git ls-files}.split("\n")
3
3
 
4
4
  spec.name = "insist"
5
- spec.version = "0.0.6"
5
+ spec.version = "0.0.7"
6
6
  spec.summary = "A simple block-driven assertion library for both testing and for production code"
7
7
  spec.description = spec.summary
8
8
  spec.license = "none chosen yet"
@@ -7,7 +7,7 @@ module Insist::Predicates
7
7
 
8
8
  def respond_to?(method)
9
9
  assert(value.respond_to?(method),
10
- "#{value} does not respond to the '#{method}' method")
10
+ "#{value.class} does not respond to the '#{method}' method")
11
11
  end # def respond_to?
12
12
 
13
13
  # Pass through any 'foo?' style method calls to the 'value'
@@ -20,8 +20,8 @@ module Insist::Predicates
20
20
 
21
21
  # call the method, like .empty?, result must be truthy.
22
22
  result = value.send(m, *args)
23
- assert(result, "#{value.inspect}##{m} expected to return a truthy " \
24
- "value, but returned #{value.inspect}")
23
+ assert(result, "#{value.class}{#{value.inspect}}##{m} expected to return a truthy " \
24
+ "value, but returned #{result}")
25
25
  return result
26
26
  else
27
27
  return super(m, *args)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: insist
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
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-08-30 00:00:00.000000000 Z
12
+ date: 2012-10-16 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: A simple block-driven assertion library for both testing and for production
15
15
  code