summaryrefslogtreecommitdiff
path: root/spec/unit/provider_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/provider_spec.rb')
-rw-r--r--spec/unit/provider_spec.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/spec/unit/provider_spec.rb b/spec/unit/provider_spec.rb
index 8dd6724192..2bc2ae7c88 100644
--- a/spec/unit/provider_spec.rb
+++ b/spec/unit/provider_spec.rb
@@ -18,15 +18,15 @@
require "spec_helper"
-
class NoWhyrunDemonstrator < Chef::Provider
attr_reader :system_state_altered
def whyrun_supported?
false
end
- def load_current_resource
+ def load_current_resource
end
+
def action_foo
@system_state_altered = true
end
@@ -55,7 +55,6 @@ class CheckResourceSemanticsDemonstrator < ConvergeActionDemonstrator
end
end
-
describe Chef::Provider do
before(:each) do
@cookbook_collection = Chef::CookbookCollection.new([])
@@ -107,7 +106,7 @@ describe Chef::Provider do
it "evals embedded recipes with a pristine resource collection" do
@provider.run_context.instance_variable_set(:@resource_collection, "doesn't matter what this is")
temporary_collection = nil
- snitch = Proc.new {temporary_collection = @run_context.resource_collection}
+ snitch = Proc.new { temporary_collection = @run_context.resource_collection }
@provider.send(:recipe_eval, &snitch)
expect(temporary_collection).to be_an_instance_of(Chef::ResourceCollection)
expect(@provider.run_context.instance_variable_get(:@resource_collection)).to eq("doesn't matter what this is")
@@ -115,7 +114,7 @@ describe Chef::Provider do
it "does not re-load recipes when creating the temporary run context" do
expect_any_instance_of(Chef::RunContext).not_to receive(:load)
- snitch = Proc.new {temporary_collection = @run_context.resource_collection}
+ snitch = Proc.new { temporary_collection = @run_context.resource_collection }
@provider.send(:recipe_eval, &snitch)
end