Sha256: 29a4f0b7bf2636a4669ce09db76d295592373fbf3ee4e50271edf18d755b23f6

Contents?: true

Size: 584 Bytes

Versions: 19

Compression:

Stored size: 584 Bytes

Contents

# ticket 186
require File.dirname(__FILE__) + '/../../../spec_helper'
require File.dirname(__FILE__) + '/parser_spec_helper'

describe ADLParser do
  context 'Special string' do
    before(:all) do
      archetype = adl14_archetype('adl-test-entry.special_string.test.adl')
      @attr = archetype.definition.attributes[0].children[0].attributes
    end

    it '1st node string is some\"thing' do
      @attr[0].children[0].list[0].should == 'some\"thing'
    end

    it '2nd node string is any\\thing' do
      @attr[1].children[0].list[0].should == "any\\thing"
    end
  end
end

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
openehr-1.2.8 spec/lib/openehr/parser/special_string_spec.rb
openehr-1.2.7 spec/lib/openehr/parser/special_string_spec.rb
openehr-1.2.6 spec/lib/openehr/parser/special_string_spec.rb
openehr-1.2.5 spec/lib/openehr/parser/special_string_spec.rb
openehr-1.2.4 spec/lib/openehr/parser/special_string_spec.rb
openehr-1.2.3 spec/lib/openehr/parser/special_string_spec.rb
openehr-1.2.2 spec/lib/openehr/parser/special_string_spec.rb
openehr-1.2.1 spec/lib/openehr/parser/special_string_spec.rb
openehr-1.2.0 spec/lib/openehr/parser/special_string_spec.rb
openehr-1.1.6 spec/lib/openehr/parser/special_string_spec.rb
openehr-1.1.5 spec/lib/openehr/parser/special_string_spec.rb
openehr-1.1.4 spec/lib/openehr/parser/special_string_spec.rb
openehr-1.1.3 spec/lib/openehr/parser/special_string_spec.rb
openehr-1.1.2 spec/lib/openehr/parser/special_string_spec.rb
openehr-1.1.1 spec/lib/openehr/parser/special_string_spec.rb
openehr-1.1.0 spec/lib/openehr/parser/special_string_spec.rb
open_ehr-1.0.2 spec/lib/open_ehr/parser/special_string_spec.rb
open_ehr-1.0.1 spec/lib/open_ehr/parser/special_string_spec.rb
open_ehr-1.0.0 spec/lib/open_ehr/parser/special_string_spec.rb