spec/lib/coach/middleware_validator_spec.rb in coach-1.0.0 vs spec/lib/coach/middleware_validator_spec.rb in coach-2.0.0

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + require "spec_helper" require "coach/middleware_validator" describe Coach::MiddlewareValidator do subject(:validator) { described_class.new(head_middleware, already_provided) } @@ -35,10 +37,11 @@ context "that are inherited up" do before do head_middleware.requires :c middleware_c.provides :c end + it { is_expected.to_not raise_error } end # Middlewares should be able to use the keys provided by the items `used` before # them. In this scenario, terminal will use a then b, and if b requires :a as a key @@ -46,9 +49,10 @@ context "that are inherited laterally" do before do middleware_a.provides :a middleware_b.requires :a end + it { is_expected.to_not raise_error } end end context "with missing requirements" do