spec/unit/model_spec.rb in evil-client-2.1.1 vs spec/unit/model_spec.rb in evil-client-3.0.0
- old
+ new
@@ -67,21 +67,21 @@
let(:options) { { "name" => "" } }
it "adds validation for an instance" do
# see spec/fixtures/locale/en.yml
expect { model }
- .to raise_error(Evil::Client::ValidationError, /The user has no name/)
+ .to raise_error(StandardError, /The user has no name/)
end
end
describe ".new" do
subject { model }
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 ".extend" do