spec/unit/settings_spec.rb in evil-client-2.1.1 vs spec/unit/settings_spec.rb in evil-client-3.0.0
- old
+ new
@@ -96,11 +96,11 @@
let(:options) { { "name" => "" } }
it "adds validation for an instance" do
# see spec/fixtures/locale/en.yml
expect { settings }
- .to raise_error(Evil::Client::ValidationError, /The user has no name/)
+ .to raise_error(StandardError, /The user has no name/)
end
end
describe ".name" do
subject { klass.name }
@@ -159,11 +159,11 @@
end
context "with wrong options" do
before { klass.option :user, as: :customer }
- it "raises Evil::Client::ValidationError" do
- expect { subject }.to raise_error Evil::Client::ValidationError, /user/
+ it "raises StandardError" do
+ expect { subject }.to raise_error StandardError, /user/
end
end
end
describe "#logger=" do