# File lib/rspec-puppet/matchers/compile.rb, line 54 def failure_message unless @cycles.empty? "dependency cycles found: #{@cycles.join('; ')}" else unless @error_msg.empty? "error during compilation: #{@error_msg}" else case @expected_error when nil "expected that the catalogue would include #{@failed_resource}" when Regexp "expected that the catalogue would fail to compile and raise an error matching #{@expected_error.inspect}" else "expected that the catalogue would fail to compile and raise the error #{@expected_error.inspect}" end end end end