Sha256: 0b820c0651451ca4d0bed3304f8de72f75caf2c3556aeac818e1b08cbb76427f

Contents?: true

Size: 352 Bytes

Versions: 6

Compression:

Stored size: 352 Bytes

Contents

require 'mida_vocabulary/datatype'

describe Mida::DataType::Text do

  it '#parse should accept an empty string' do
    text = Mida::DataType::Text.parse('')
    text.should == ''
  end

  it '#parse should return the input value' do
    test_text = 'Some text'
    text = Mida::DataType::Text.parse(test_text)
    text.should == test_text
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mida_vocabulary-0.2.2 spec/datatype/text_spec.rb
mida_vocabulary-0.2 spec/datatype/text_spec.rb
mida_vocabulary-0.1.3 spec/datatype/text_spec.rb
mida_vocabulary-0.1.2 spec/datatype/text_spec.rb
mida_vocabulary-0.1.1 spec/datatype/text_spec.rb
mida_vocabulary-0.1 spec/datatype/text_spec.rb