Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove quotes from resource refs to match puppetlabs style

  • Loading branch information...
commit 3e2b4ce2ef04690a51221bbd222efb885d4bf994 1 parent c112f1f
@rodjek authored
View
6 lib/rspec-puppet/matchers/create_generic.rb
@@ -40,15 +40,15 @@ def matches?(catalogue)
end
def failure_message_for_should
- "expected that the catalogue would contain #{@referenced_type}[\"#{@title}\"]#{errors}"
+ "expected that the catalogue would contain #{@referenced_type}[#{@title}]#{errors}"
end
def failure_message_for_should_not
- "expected that the catalogue would not contain #{@referenced_type}[\"#{@title}\"]#{errors}"
+ "expected that the catalogue would not contain #{@referenced_type}[#{@title}]#{errors}"
end
def description
- "create #{@referenced_type}[\"#{@title}\"]"
+ "create #{@referenced_type}[#{@title}]"
end
private
View
4 lib/rspec-puppet/matchers/include_class.rb
@@ -8,11 +8,11 @@ module Matchers
end
description do
- "include Class['#{expected_class}']"
+ "include Class[#{expected_class}]"
end
failure_message_for_should do |actual|
- "expected that the catalogue would include Class['#{expected_class}']"
+ "expected that the catalogue would include Class[#{expected_class}]"
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.