Permalink
Browse files

obj_name is a symbol

  • Loading branch information...
1 parent 4afd64e commit c3c62f1d6080f3aa538b3e44d304fbf4e578078b @maxlinc maxlinc committed Sep 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rspec-puppet/matchers/run.rb
@@ -47,7 +47,7 @@ module FunctionMatchers
end
failure_message_for_should do |func_obj|
- func_name = func_obj.name.gsub(/^function_/, '')
+ func_name = func_obj.name.to_s.gsub(/^function_/, '')
func_params = @params.inspect[1..-2]
if @expected_return

0 comments on commit c3c62f1

Please sign in to comment.