dbd_onto_engine 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,7 +10,7 @@ module DbdOntoEngine
10
10
  end
11
11
  end
12
12
 
13
- context "page content" do
13
+ context "index page content" do
14
14
 
15
15
  before(:each) do
16
16
  visit(dbd_onto_engine.ontologies_path)
@@ -27,6 +27,10 @@ module DbdOntoEngine
27
27
  it "shows the link to the meta ontology" do
28
28
  expect(page).to have_text('Meta')
29
29
  end
30
+
31
+ it "shows the link to the schema ontology" do
32
+ expect(page).to have_text('Schema')
33
+ end
30
34
  end
31
35
  end
32
36
 
@@ -44,7 +48,20 @@ module DbdOntoEngine
44
48
  end
45
49
  end
46
50
 
47
- context "page content" do
51
+ context "meta page content" do
52
+
53
+ before(:each) { visit dbd_onto_engine.ontology_path(id: 'meta') }
54
+
55
+ it "shows the meta ontology" do
56
+ expect(page).to have_text('Meta')
57
+ end
58
+
59
+ it "shows the meta:defines_predicate predicate" do
60
+ expect(page).to have_text('meta:defines_predicate')
61
+ end
62
+ end
63
+
64
+ context "context page content" do
48
65
 
49
66
  before(:each) { visit dbd_onto_engine.ontology_path(id: 'context') }
50
67
 
@@ -56,6 +73,59 @@ module DbdOntoEngine
56
73
  expect(page).to have_text('context:visibility')
57
74
  end
58
75
  end
76
+
77
+ context "schema page content" do
78
+
79
+ before(:each) { visit dbd_onto_engine.ontology_path(id: 'schema') }
80
+
81
+ it "shows the schema ontology" do
82
+ expect(page).to have_css('h1', text: 'Ontology Schema')
83
+ end
84
+
85
+ it "shows an explanation for 'U'" do
86
+ expect(page).to have_css('p', text: 'U stands for "used"')
87
+ end
88
+
89
+ it "shows the header 'U'" do
90
+ expect(page).to have_css('th', text: /^U$/)
91
+ end
92
+
93
+ it "shows the header 'Predicate'" do
94
+ expect(page).to have_css('th', text: 'Predicate')
95
+ end
96
+
97
+ it "shows the header 'Label'" do
98
+ expect(page).to have_css('th', text: 'Label')
99
+ end
100
+
101
+ it "shows the header 'Comment'" do
102
+ expect(page).to have_css('th', text: 'Comment')
103
+ end
104
+
105
+ it "shows a predicate that is used (V)" do
106
+ expect(page).to have_css('td', text: /^V$/)
107
+ end
108
+
109
+ it "shows a predicate that is not used (-)" do
110
+ expect(page).to have_css('td', text: /^\-$/)
111
+ end
112
+
113
+ it "shows the schema:about predicate" do
114
+ expect(page).to have_css('td', text: 'schema:about')
115
+ end
116
+
117
+ it "shows the schema:about predicate as a link to the rdf:uri" do
118
+ expect(page).to have_css('td a[href="http://schema.org/about"]', text: 'schema:about')
119
+ end
120
+
121
+ it "shows the label 'about'" do
122
+ expect(page).to have_css('td', text: 'about')
123
+ end
124
+
125
+ it "shows the comment for 'schema:about'" do
126
+ expect(page).to have_css('td', text: 'The subject matter of the content.')
127
+ end
128
+ end
59
129
  end
60
130
  end
61
131
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dbd_onto_engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Vandenabeele
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-02 00:00:00.000000000 Z
11
+ date: 2013-10-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - '>='
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: 0.0.10
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - '>='
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: 0.0.10
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: haml-rails
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -130,6 +130,7 @@ extensions: []
130
130
  extra_rdoc_files: []
131
131
  files:
132
132
  - app/assets/stylesheets/dbd_onto_engine/application.css
133
+ - app/assets/stylesheets/dbd_onto_engine/ontology.css
133
134
  - app/controllers/dbd_onto_engine/application_controller.rb
134
135
  - app/controllers/dbd_onto_engine/ontologies_controller.rb
135
136
  - app/helpers/dbd_onto_engine/application_helper.rb
@@ -181,12 +182,18 @@ files:
181
182
  - spec/dummy/tmp/cache/assets/development/sprockets/4cba04e119d9e8c0ccd88291fa55b3b7
182
183
  - spec/dummy/tmp/cache/assets/development/sprockets/a66f82fffdfe6e75dc678e9581e75033
183
184
  - spec/dummy/tmp/cache/assets/development/sprockets/edca038f123a74c625d6b65c35e886d2
185
+ - spec/dummy/tmp/cache/assets/test/sprockets/4cba04e119d9e8c0ccd88291fa55b3b7
186
+ - spec/dummy/tmp/cache/assets/test/sprockets/74c95158467e68b9270e9a5095bc7394
187
+ - spec/dummy/tmp/cache/assets/test/sprockets/8eb6fa30c0ceab04e49619ebffaac100
188
+ - spec/dummy/tmp/cache/assets/test/sprockets/a66f82fffdfe6e75dc678e9581e75033
189
+ - spec/dummy/tmp/cache/assets/test/sprockets/edca038f123a74c625d6b65c35e886d2
184
190
  - spec/features/dbd_onto_engine/ontologies_spec.rb
185
191
  - spec/routing/README.txt
186
192
  - spec/spec_helper.rb
187
193
  - spec/views/dbd_onto_engine/ontologies/index.html.haml_spec.rb
188
194
  homepage: https://github.com/petervandenabeele/dbd_onto_engine
189
- licenses: []
195
+ licenses:
196
+ - MIT
190
197
  metadata: {}
191
198
  post_install_message:
192
199
  rdoc_options: []
@@ -245,6 +252,11 @@ test_files:
245
252
  - spec/dummy/tmp/cache/assets/development/sprockets/4cba04e119d9e8c0ccd88291fa55b3b7
246
253
  - spec/dummy/tmp/cache/assets/development/sprockets/a66f82fffdfe6e75dc678e9581e75033
247
254
  - spec/dummy/tmp/cache/assets/development/sprockets/edca038f123a74c625d6b65c35e886d2
255
+ - spec/dummy/tmp/cache/assets/test/sprockets/4cba04e119d9e8c0ccd88291fa55b3b7
256
+ - spec/dummy/tmp/cache/assets/test/sprockets/74c95158467e68b9270e9a5095bc7394
257
+ - spec/dummy/tmp/cache/assets/test/sprockets/8eb6fa30c0ceab04e49619ebffaac100
258
+ - spec/dummy/tmp/cache/assets/test/sprockets/a66f82fffdfe6e75dc678e9581e75033
259
+ - spec/dummy/tmp/cache/assets/test/sprockets/edca038f123a74c625d6b65c35e886d2
248
260
  - spec/features/dbd_onto_engine/ontologies_spec.rb
249
261
  - spec/routing/README.txt
250
262
  - spec/spec_helper.rb