Last change
on this file since 420 was 420, checked in by KOBAYASHI, Shinji, 14 years ago |
implementing terminology related tables
|
File size:
643 bytes
|
Line | |
---|
1 | require 'spec_helper'
|
---|
2 |
|
---|
3 | describe TerminologyIdentifier do
|
---|
4 | fixtures :terminology_identifiers
|
---|
5 |
|
---|
6 | before(:each) do
|
---|
7 | @valid_attributes = {
|
---|
8 | :vsab => "SNOMED-CT",
|
---|
9 | :authority => "openEHR 2003",
|
---|
10 | :source_name => "SNOMED International Clinical Terms, 2002"
|
---|
11 | }
|
---|
12 | end
|
---|
13 |
|
---|
14 | it "should create a new instance given valid attributes" do
|
---|
15 | TerminologyIdentifier.create!(@valid_attributes)
|
---|
16 | end
|
---|
17 |
|
---|
18 | it 'should return true if vsab is on the table' do
|
---|
19 | TerminologyIdentifier.should have_vsab 'AIR93'
|
---|
20 | end
|
---|
21 |
|
---|
22 | it 'should not return true if vsab is out of the table' do
|
---|
23 | TerminologyIdentifier.should_not have_vsab 'ZZZZZZZ'
|
---|
24 | end
|
---|
25 | end
|
---|
Note:
See
TracBrowser
for help on using the repository browser.