Skip to content

Commit 72bb3a8

Browse files
authored
Merge pull request #24 from binford2k/check_return_type
Add the ability to use `kind_of` matchers
2 parents e54b31e + 8c149e9 commit 72bb3a8

File tree

1 file changed

+2
-0
lines changed
  • lib/rspec-puppet/matchers

1 file changed

+2
-0
lines changed

lib/rspec-puppet/matchers/run.rb

+2
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ def matches?(func_obj)
3535
case @expected_return
3636
when Regexp
3737
return !!(@actual_return =~ @expected_return)
38+
when RSpec::Mocks::ArgumentMatchers::KindOf, RSpec::Matchers::AliasedMatcher
39+
return @expected_return === @actual_return
3840
else
3941
return @actual_return == @expected_return
4042
end

0 commit comments

Comments
 (0)