Sha256: ffc2baca639129544a745c87bea7a0b9c1545bd9ccf9cf3ce838652fea513ec3
Contents?: true
Size: 429 Bytes
Versions: 5
Compression:
Stored size: 429 Bytes
Contents
require "spec_helper" describe "Errors::Validation" do let!(:error_hash) { {type: "type", key: "custom key"} } it "correctly stores the error hash" do expect(Kharon::Errors::Validation.new(error_hash).error_hash).to eq(error_hash) end it "correctly return the JSON equivalent of the error hash as message" do expect(Kharon::Errors::Validation.new(error_hash).message).to eq(JSON.generate(error_hash)) end end
Version data entries
5 entries across 5 versions & 1 rubygems