spec/lib/coach/notifications_spec.rb in coach-0.4.5 vs spec/lib/coach/notifications_spec.rb in coach-0.4.6

- old
+ new

@@ -51,10 +51,10 @@ describe "coach.request event" do before { handler.call({}) } it "contains all middleware that have been run" do middleware_names = middleware_event[:chain].map { |item| item[:name] } - expect(middleware_names).to include(*%w(Terminal A B)) + expect(middleware_names).to include('Terminal', 'A', 'B') end it "includes all logged metadata" do expect(middleware_event). to include(metadata: { A: true, B: true, Terminal: true })