summaryrefslogtreecommitdiff
path: root/chef-utils
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-07-07 15:28:50 -0700
committerTim Smith <tsmith84@gmail.com>2020-07-07 15:28:50 -0700
commitd7c4085d55a537d297f557c119fa6a9bd7e22690 (patch)
treefacde7c91df602a4b9584472a09c2043036501b0 /chef-utils
parent3e9e6d41a31bd1ac932f7f4100102466b4fdfe05 (diff)
downloadchef-d7c4085d55a537d297f557c119fa6a9bd7e22690.tar.gz
Add spaces after attrs
This makes it easier to read the classes. Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'chef-utils')
-rw-r--r--chef-utils/spec/unit/dsl/introspection_spec.rb1
-rw-r--r--chef-utils/spec/unit/dsl/platform_spec.rb3
2 files changed, 4 insertions, 0 deletions
diff --git a/chef-utils/spec/unit/dsl/introspection_spec.rb b/chef-utils/spec/unit/dsl/introspection_spec.rb
index 44a228061d..9275a9fc79 100644
--- a/chef-utils/spec/unit/dsl/introspection_spec.rb
+++ b/chef-utils/spec/unit/dsl/introspection_spec.rb
@@ -21,6 +21,7 @@ RSpec.describe ChefUtils::DSL::Introspection do
class IntrospectionTestClass
include ChefUtils::DSL::Introspection
attr_accessor :node
+
def initialize(node)
@node = node
end
diff --git a/chef-utils/spec/unit/dsl/platform_spec.rb b/chef-utils/spec/unit/dsl/platform_spec.rb
index 69efae877c..93b61f0532 100644
--- a/chef-utils/spec/unit/dsl/platform_spec.rb
+++ b/chef-utils/spec/unit/dsl/platform_spec.rb
@@ -58,6 +58,7 @@ RSpec.describe ChefUtils::DSL::Platform do
class ThingWithANode
include ChefUtils::DSL::Platform
attr_accessor :node
+
def initialize(node)
@node = node
end
@@ -69,6 +70,7 @@ RSpec.describe ChefUtils::DSL::Platform do
attr_accessor :node
end
attr_accessor :run_context
+
def initialize(node)
@run_context = RunContext.new
run_context.node = node
@@ -78,6 +80,7 @@ RSpec.describe ChefUtils::DSL::Platform do
class ThingWithTheDSL
include ChefUtils
attr_accessor :node
+
def initialize(node)
@node = node
end