Sha256: a513eb3baa7a543ba1cd49bba763775aef441b0391ff94bd7a5942acf19ad94c
Contents?: true
Size: 343 Bytes
Versions: 1
Compression:
Stored size: 343 Bytes
Contents
require 'spec_helper' module Jschematic module Attributes describe Ref do describe "#accepts?" do it "fails when the referenced schema does not exist" do ref = Ref.new("does_not_exist") expect { ref.accepts?({}) }.to raise_error(Jschematic::SchemaNotFoundError) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jschematic-0.1.0 | spec/jschematic/attributes/ref_spec.rb |