kelredd-useful 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,7 +14,12 @@ module Useful::ShouldaMacros::TestUnit::Classes
14
14
  klass = described_type
15
15
  methods.each do |method|
16
16
  should "respond to instance method ##{method}" do
17
- assert_respond_to((klass.new rescue subject), method, "#{klass.name} does not have instance method #{method}")
17
+ the_subject = begin
18
+ klass.new
19
+ rescue Exception => err
20
+ subject
21
+ end
22
+ assert_respond_to(the_subject, method, "#{klass.name} does not have instance method #{method}")
18
23
  end
19
24
  end
20
25
  end unless Test::Unit::TestCase.method_defined? :should_have_instance_methods
@@ -3,7 +3,7 @@ module Useful
3
3
 
4
4
  MAJOR = 0
5
5
  MINOR = 2
6
- TINY = 2
6
+ TINY = 3
7
7
 
8
8
  def self.to_s # :nodoc:
9
9
  [MAJOR, MINOR, TINY].join('.')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kelredd-useful
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kelly Redding
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-11-11 00:00:00 -06:00
12
+ date: 2009-11-18 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency