spec/unit/a9n_spec.rb in a9n-0.4.6 vs spec/unit/a9n_spec.rb in a9n-0.4.7

- old
+ new

@@ -226,21 +226,21 @@ expect(subject).to receive(:load).once end it do expect(subject.storage).to be_empty - expect { subject.whatever }.to raise_error(A9n::NoSuchConfigurationVariable) + expect { subject.whatever }.to raise_error(A9n::NoSuchConfigurationVariableError) end end context "when storage is not empty" do before do subject.storage[:whenever] = 'whenever' expect(subject).not_to receive(:load) end it do - expect { subject.whatever }.to raise_error(A9n::NoSuchConfigurationVariable) + expect { subject.whatever }.to raise_error(A9n::NoSuchConfigurationVariableError) end end end end