diff options
Diffstat (limited to 'spec/unit/event_dispatch')
-rw-r--r-- | spec/unit/event_dispatch/dispatcher_spec.rb | 1 | ||||
-rw-r--r-- | spec/unit/event_dispatch/dsl_spec.rb | 8 |
2 files changed, 4 insertions, 5 deletions
diff --git a/spec/unit/event_dispatch/dispatcher_spec.rb b/spec/unit/event_dispatch/dispatcher_spec.rb index 814377a776..2360b2675d 100644 --- a/spec/unit/event_dispatch/dispatcher_spec.rb +++ b/spec/unit/event_dispatch/dispatcher_spec.rb @@ -75,7 +75,6 @@ describe Chef::EventDispatch::Dispatcher do end end - context "when two event sinks have different arguments for an event" do let(:event_sink_1) do Class.new(Chef::EventDispatch::Base) do 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 |