summaryrefslogtreecommitdiff
path: root/spec/unit/event_dispatch/dsl_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/event_dispatch/dsl_spec.rb')
-rw-r--r--spec/unit/event_dispatch/dsl_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/unit/event_dispatch/dsl_spec.rb b/spec/unit/event_dispatch/dsl_spec.rb
index d18234c08a..979b067fb6 100644
--- a/spec/unit/event_dispatch/dsl_spec.rb
+++ b/spec/unit/event_dispatch/dsl_spec.rb
@@ -32,7 +32,7 @@ describe Chef::EventDispatch::DSL do
Chef.set_run_context(run_context)
end
- subject{ described_class.new("test") }
+ subject { described_class.new("test") }
it "set handler name" do
subject.on(:run_started) {}
@@ -46,7 +46,7 @@ describe Chef::EventDispatch::DSL do
end
it "register user hooks against valid event type" do
- subject.on(:run_failed) {"testhook"}
+ subject.on(:run_failed) { "testhook" }
expect(events.subscribers.first.run_failed).to eq("testhook")
end
@@ -61,7 +61,7 @@ describe Chef::EventDispatch::DSL do
end
end
resource = Chef::Resource::RubyBlock.new("foo", run_context)
- resource.block { }
+ resource.block {}
resource.run_action(:run)
expect(calls).to eq([:started, :updated])
end
@@ -76,7 +76,7 @@ describe Chef::EventDispatch::DSL do
end
end
resource = Chef::Resource::RubyBlock.new("foo", run_context)
- resource.block { }
+ resource.block {}
resource.run_action(:run)
expect(events.subscribers.first.instance_variable_get(:@ivar)).to eq([1, 2])
end