Sha256: ce8bbe339575ec139041a753a05ee825954bf5d677b2678e19774acd30598744
Contents?: true
Size: 333 Bytes
Versions: 2
Compression:
Stored size: 333 Bytes
Contents
require 'spec_helper' module Jschematic module Attributes describe Enum do subject { Enum } it "raises unless its schema value is an Array" do expect { subject.new("this is allowed, right?") }.to raise_error expect { subject.new(["not", "really"]) }.to_not raise_error end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jschematic-0.0.2 | spec/jschematic/attributes/enum_spec.rb |
jschematic-0.0.1 | spec/jschematic/attributes/enum_spec.rb |