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