Sha256: a97b72aaba1400642fc9c7a5fe76ecb065a53559a654f9d550c35e7a708cee25
Contents?: true
Size: 558 Bytes
Versions: 1
Compression:
Stored size: 558 Bytes
Contents
require 'spec_helper' [ :length, :range ].each do |method| describe "Veritas::Attribute::String##{method}" do subject { object.send(method) } let(:klass) { Attribute::String } context 'without :length option passed to constructor' do let(:object) { klass.new(:name) } it { should == (0..50) } end context 'with :length option passed to constructor' do let(:length) { 1..100 } let(:object) { klass.new(:name, :length => length) } it { should == length } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
veritas-0.0.2 | spec/unit/veritas/attribute/string/length_spec.rb |