spec/lib/coach/middleware_validator_spec.rb in coach-0.2.1 vs spec/lib/coach/middleware_validator_spec.rb in coach-0.2.2

- old
+ new

@@ -54,19 +54,19 @@ context "with missing requirements" do context "at terminal" do before { head_middleware.requires :a, :c } - it { is_expected.to raise_exception(/requires keys \[a,c\]/) } + it { is_expected.to raise_exception(/missing \[:a, :c\]/) } end context "from unordered middleware" do before do middleware_a.requires :b middleware_b.provides :b end - it { is_expected.to raise_exception(/requires keys \[b\]/) } + it { is_expected.to raise_exception(/missing \[:b\]/) } end end end end