Sha256: 05c2ad60d7f7e8874d7db0e42d9e72f70440f42464e51588ac097094fe7ef593
Contents?: true
Size: 396 Bytes
Versions: 6
Compression:
Stored size: 396 Bytes
Contents
require 'spec_helper' module Jschematic module Attributes describe MaxItems, "with a maximum of two items" do subject { MaxItems.new(2) } describe "#accepts?" do it { should accept([1,2]) } it { should_not accept([1,2,3]) } it { should accept("instance that is not an array") } end end end end
Version data entries
6 entries across 6 versions & 1 rubygems