Sha256: d51ea79fbca5568f4bee56d4f4661f61e98fe5fb9c3683b6dae8edc87496f550

Contents?: true

Size: 341 Bytes

Versions: 5

Compression:

Stored size: 341 Bytes

Contents

require 'mida/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

5 entries across 5 versions & 1 rubygems

Version Path
mida-0.3.9 spec/datatype/text_spec.rb
mida-0.3.8 spec/datatype/text_spec.rb
mida-0.3.7 spec/datatype/text_spec.rb
mida-0.3.6 spec/datatype/text_spec.rb
mida-0.3.3 spec/datatype/text_spec.rb