spec/unit/veritas/attribute/string/valid_value_spec.rb in veritas-0.0.3 vs spec/unit/veritas/attribute/string/valid_value_spec.rb in veritas-0.0.4

- old
+ new

@@ -1,10 +1,12 @@ +# encoding: utf-8 + require 'spec_helper' describe Attribute::String, '#valid_value?' do subject { object.valid_value?(value) } - let(:object) { described_class.new(:string, :length => 1..50) } + let(:object) { described_class.new(:string, :min_length => 1, :max_length => 50) } context 'with a string value' do context 'that is within the allowed length range' do let(:value) { 'a' }