summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordanielsdeleo <dan@chef.io>2016-03-21 10:55:01 -0700
committerdanielsdeleo <dan@chef.io>2016-03-21 11:53:09 -0700
commit43d11e0fdc6ec553a17fb48c9b76ef8b9dbfa28e (patch)
tree6c855da3bd0a2c01f706830f64c6fc80298bdd9e
parent469492f7becd0a09b62ffba82555e344447a844a (diff)
downloadchef-43d11e0fdc6ec553a17fb48c9b76ef8b9dbfa28e.tar.gz
Make example classes #to_s method return a stringdebug-travis-provider-resolver-fail
-rw-r--r--spec/integration/recipes/resource_converge_if_changed_spec.rb2
-rw-r--r--spec/integration/recipes/resource_load_spec.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/integration/recipes/resource_converge_if_changed_spec.rb b/spec/integration/recipes/resource_converge_if_changed_spec.rb
index f1ea79daf9..4e5fd526fc 100644
--- a/spec/integration/recipes/resource_converge_if_changed_spec.rb
+++ b/spec/integration/recipes/resource_converge_if_changed_spec.rb
@@ -21,7 +21,7 @@ describe "Resource::ActionClass#converge_if_changed" do
let(:resource_name) { :"converge_if_changed_dsl#{Namer.current_index}" }
let(:resource_class) {
result = Class.new(Chef::Resource) do
- def self.to_s; resource_name; end
+ def self.to_s; resource_name.to_s; end
def self.inspect; resource_name.inspect; end
property :identity1, identity: true, default: "default_identity1"
diff --git a/spec/integration/recipes/resource_load_spec.rb b/spec/integration/recipes/resource_load_spec.rb
index b48eb2daa5..53ce1c91b3 100644
--- a/spec/integration/recipes/resource_load_spec.rb
+++ b/spec/integration/recipes/resource_load_spec.rb
@@ -20,7 +20,7 @@ describe "Resource.load_current_value" do
let(:resource_name) { :"load_current_value_dsl#{Namer.current_index}" }
let(:resource_class) {
result = Class.new(Chef::Resource) do
- def self.to_s; resource_name; end
+ def self.to_s; resource_name.to_s; end
def self.inspect; resource_name.inspect; end
property :x, default: lazy { "default #{Namer.incrementing_value}" }