Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

failure_message_for_should - object name is a symbol #53

Merged
merged 1 commit into from

2 participants

@maxlinc

I was getting a missing method exception that was obscuring the actual error message without this fix.

@rodjek rodjek merged commit 102a9e8 into rodjek:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 4, 2012
  1. @maxlinc

    obj_name is a symbol

    maxlinc authored
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/rspec-puppet/matchers/run.rb
View
2  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
Something went wrong with that request. Please try again.