Sha256: 3a4d2b76f06e5cfe889063259217f18768911bfc889b3fde0b15b2d56f5d1bfd
Contents?: true
Size: 427 Bytes
Versions: 11
Compression:
Stored size: 427 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Axiom::Types::LengthComparable, '#range' do subject { object.range } let(:object) do Class.new(Axiom::Types::Type) do extend Axiom::Types::LengthComparable minimum_length 1 maximum_length 2 end end before do object.finalize end it_should_behave_like 'an idempotent method' it { should be_frozen } it { should eql(1..2) } end
Version data entries
11 entries across 9 versions & 4 rubygems