spec/unit/veritas/attribute/string/valid_value_spec.rb in veritas-0.0.2 vs spec/unit/veritas/attribute/string/valid_value_spec.rb in veritas-0.0.3
- old
+ new
@@ -1,11 +1,10 @@
require 'spec_helper'
-describe 'Veritas::Attribute::String#valid_value?' do
+describe Attribute::String, '#valid_value?' do
subject { object.valid_value?(value) }
- let(:klass) { Attribute::String }
- let(:object) { klass.new(:string, :length => 1..50) }
+ let(:object) { described_class.new(:string, :length => 1..50) }
context 'with a string value' do
context 'that is within the allowed length range' do
let(:value) { 'a' }