Sha256: 9d17a3b6af4a9486b8ebda6ae328a82c6cb58225de7012c5dcdd64f155224b8c
Contents?: true
Size: 521 Bytes
Versions: 5
Compression:
Stored size: 521 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Attribute::String, '#min_length' do subject { object.min_length } context 'without :min_length option passed to constructor' do let(:object) { described_class.new(:name) } it { should == 0 } end context 'with :length option passed to constructor' do let(:min_length) { 1 } let(:object) { described_class.new(:name, :min_length => min_length) } it { should == min_length } end end
Version data entries
5 entries across 5 versions & 2 rubygems