Changeset 225


Ignore:
Timestamp:
Aug 27, 2009, 3:45:01 PM (11 years ago)
Author:
KOBAYASHI, Shinji
Message:

implementing terminology services

Location:
ruby/branches/0.5
Files:
9 added
3 edited

Legend:

Unmodified
Added
Removed
  • ruby/branches/0.5/db/schema.rb

    r164 r225  
    1010# It's strongly recommended to check this file into your version control system.
    1111
    12 ActiveRecord::Schema.define(:version => 20090725052538) do
     12ActiveRecord::Schema.define(:version => 20090824070846) do
     13
     14  create_table "encoding_aliases", :force => true do |t|
     15    t.string  "alias"
     16    t.integer "mibenum"
     17  end
     18
     19  create_table "encodings", :force => true do |t|
     20    t.string  "name"
     21    t.integer "mibenum"
     22    t.text    "source"
     23  end
    1324
    1425  create_table "terminologies", :force => true do |t|
  • ruby/branches/0.5/spec/lib/open_ehr/rm/data_types/text/dv_text_spec.rb

    r223 r225  
    88    language = CodePhrase.new(:terminology_id => terminology_id,
    99                              :code_string => 'ja')
     10    encoding = CodePhrase.new(:terminology_id => terminology_id,
     11                              :code_string => 'utf-8')
    1012    @dv_text = DvText.new(:value => 'test',
    1113                          :formatting => 'font = 12pt',
    12                           :language => language)
     14                          :language => language,
     15                          :encoding => encoding)
    1316  end
    1417
     
    4952  end
    5053
    51   it 'should be encoding'
     54  it 's encoding should be utf-8' do
     55    @dv_text.encoding.code_string.should == 'utf-8'
     56  end
    5257end
Note: See TracChangeset for help on using the changeset viewer.