openehr-rails 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/lib/generators/openehr.rb +1 -1
- data/lib/openehr-rails/version.rb +1 -1
- data/openehr-rails.gemspec +1 -1
- data/spec/generator_helper.rb +2 -1
- data/spec/generators/openehr/archetyped_base_spec.rb +17 -16
- data/spec/generators/openehr/assets/assets_generator_spec.rb +4 -4
- data/spec/generators/openehr/controller/controller_generator_spec.rb +2 -2
- data/spec/generators/openehr/helper/helper_generator_spec.rb +2 -2
- data/spec/generators/openehr/i18n/i18n_generator_spec.rb +22 -22
- data/spec/generators/openehr/install/install_generator_spec.rb +1 -1
- data/spec/generators/openehr/migration/migration_generator_spec.rb +2 -2
- data/spec/generators/openehr/model/model_generator_spec.rb +24 -24
- data/spec/generators/openehr/scaffold/scaffold_generator_spec.rb +39 -39
- data/spec/generators/templates/openEHR-EHR-OBSERVATION.blood_pressure.v1.adl +2990 -1021
- data/spec/rcomponents/relement_spec.rb +3 -3
- data/spec/rcomponents/robservation_spec.rb +2 -2
- data/spec/spec_helper.rb +1 -1
- metadata +3 -18
- data/lib/openehr/rails.rb +0 -1
@@ -8,14 +8,14 @@ describe OpenEHR::RComponents::RElement do
|
|
8
8
|
end
|
9
9
|
|
10
10
|
it 'should be an instance of RElement' do
|
11
|
-
@relement.
|
11
|
+
expect(@relement).to be_an_instance_of OpenEHR::RComponents::RElement
|
12
12
|
end
|
13
13
|
|
14
14
|
it 'node_id is at0004' do
|
15
|
-
@relement.node_id.
|
15
|
+
expect(@relement.node_id).to eq 'at0004'
|
16
16
|
end
|
17
17
|
|
18
18
|
it 'path is /data[at0004]' do
|
19
|
-
@relement.path.
|
19
|
+
expect(@relement.path).to eq '/data[at0004]'
|
20
20
|
end
|
21
21
|
end
|
@@ -12,10 +12,10 @@ describe OpenEHR::RComponents::RObservation do
|
|
12
12
|
end
|
13
13
|
|
14
14
|
it 'protocol is properly assigned' do
|
15
|
-
@robservation.protocol.
|
15
|
+
expect(@robservation.protocol).to eq 'dummy protocol'
|
16
16
|
end
|
17
17
|
|
18
18
|
it 'state is properly assigned' do
|
19
|
-
@robservation.state.
|
19
|
+
expect(@robservation.state).to eq 'dummy state'
|
20
20
|
end
|
21
21
|
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,29 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openehr-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shinji KOBAYASHI
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-08-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: openehr
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ">="
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '0'
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - ">="
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '0'
|
27
13
|
- !ruby/object:Gem::Dependency
|
28
14
|
name: rails
|
29
15
|
requirement: !ruby/object:Gem::Requirement
|
@@ -170,7 +156,6 @@ files:
|
|
170
156
|
- lib/generators/openehr/scaffold/templates/show.html.erb
|
171
157
|
- lib/openehr-rails.rb
|
172
158
|
- lib/openehr-rails/version.rb
|
173
|
-
- lib/openehr/rails.rb
|
174
159
|
- lib/rcomponents.rb
|
175
160
|
- openehr-rails.gemspec
|
176
161
|
- spec/generator_helper.rb
|
@@ -208,7 +193,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
208
193
|
version: '0'
|
209
194
|
requirements: []
|
210
195
|
rubyforge_project:
|
211
|
-
rubygems_version: 2.
|
196
|
+
rubygems_version: 2.4.1
|
212
197
|
signing_key:
|
213
198
|
specification_version: 4
|
214
199
|
summary: Rails extension for the openEHR archetypes
|
data/lib/openehr/rails.rb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
require 'openehr'
|