spec/creditsafe/messages_spec.rb in creditsafe-0.2.0 vs spec/creditsafe/messages_spec.rb in creditsafe-0.3.0
- old
+ new
@@ -1,5 +1,6 @@
+# frozen_string_literal: true
require 'spec_helper'
require 'creditsafe/messages'
RSpec.describe(Creditsafe::Messages) do
describe ".for_code" do
@@ -27,10 +28,10 @@
end
context "for an empty code" do
let(:code) { '' }
it "was passed the wrong parameters" do
- expect { subject(:message) }.to raise_error
+ expect { subject(:message) }.to raise_error(ArgumentError)
end
end
end
describe(Creditsafe::Messages::Message) do