dbd_onto_engine 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -31,6 +31,20 @@ module DbdOntoEngine
31
31
  it "shows the link to the schema ontology" do
32
32
  expect(page).to have_text('Schema')
33
33
  end
34
+
35
+ context "headers" do
36
+ it "shows a header to ontologies" do
37
+ expect(page).to have_css('a[href="/ontologies"]', text: 'ontologies')
38
+ end
39
+
40
+ it "shows a header to resources" do
41
+ expect(page).to have_css('a[href="/data/resources"]', text: 'resources')
42
+ end
43
+
44
+ it "shows a header to contexts" do
45
+ expect(page).to have_css('a[href="/data/contexts"]', text: 'contexts')
46
+ end
47
+ end
34
48
  end
35
49
  end
36
50
 
@@ -82,10 +96,6 @@ module DbdOntoEngine
82
96
  expect(page).to have_css('h1', text: 'Ontology Schema')
83
97
  end
84
98
 
85
- it "shows an explanation for 'U'" do
86
- expect(page).to have_css('p', text: 'U stands for "used"')
87
- end
88
-
89
99
  it "shows the header 'U'" do
90
100
  expect(page).to have_css('th', text: /^U$/)
91
101
  end
@@ -5,4 +5,8 @@ describe "dbd_onto_engine/ontologies/index.html.haml" do
5
5
  render
6
6
  rendered.should match(/ontologies/i)
7
7
  end
8
+
9
+ it 'renders the links partial' do
10
+ render.should render_template('dbd_onto_engine/shared/_links')
11
+ end
8
12
  end
@@ -0,0 +1,22 @@
1
+ require 'spec_helper'
2
+
3
+ describe "dbd_onto_engine/ontologies/show.html.haml" do
4
+
5
+ before(:each) do
6
+ @ontology = 'foo'
7
+ end
8
+
9
+ it "talks about an ontology" do
10
+ render
11
+ rendered.should have_css('h1', text: 'Ontology Foo')
12
+ end
13
+
14
+ it "explains U" do
15
+ render
16
+ rendered.should have_css('p', text: 'U stands for "used to create new resources"')
17
+ end
18
+
19
+ it 'renders the links partial' do
20
+ render.should render_template('dbd_onto_engine/shared/_links')
21
+ end
22
+ end
@@ -0,0 +1,20 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'dbd_onto_engine/shared/_links.html.haml' do
4
+
5
+ before(:each) do
6
+ render 'dbd_onto_engine/shared/links'
7
+ end
8
+
9
+ it 'renders the link to ontologies' do
10
+ rendered.should have_css('a[href="/ontologies"]', text: 'ontologies')
11
+ end
12
+
13
+ it 'renders the link to resources' do
14
+ rendered.should have_css('a[href="/data/resources"]', text: 'resources')
15
+ end
16
+
17
+ it 'renders the link to contexts' do
18
+ rendered.should have_css('a[href="/data/contexts"]', text: 'contexts')
19
+ end
20
+ 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.7
4
+ version: 0.0.8
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-10-23 00:00:00.000000000 Z
11
+ date: 2014-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '>='
18
18
  - !ruby/object:Gem::Version
19
- version: 4.0.0
19
+ version: 4.0.2
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '>='
25
25
  - !ruby/object:Gem::Version
26
- version: 4.0.0
26
+ version: 4.0.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: haml
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -42,16 +42,16 @@ dependencies:
42
42
  name: dbd_onto
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ~>
46
46
  - !ruby/object:Gem::Version
47
- version: 0.0.12
47
+ version: 0.0.13
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.0.12
54
+ version: 0.0.13
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: haml-rails
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -138,6 +138,7 @@ files:
138
138
  - app/views/dbd_onto_engine/ontologies/_ontology_title.html.haml
139
139
  - app/views/dbd_onto_engine/ontologies/index.html.haml
140
140
  - app/views/dbd_onto_engine/ontologies/show.html.haml
141
+ - app/views/dbd_onto_engine/shared/_links.html.haml
141
142
  - app/views/layouts/dbd_onto_engine/application.html.haml
142
143
  - config/routes.rb
143
144
  - lib/dbd_onto_engine/engine.rb
@@ -191,6 +192,8 @@ files:
191
192
  - spec/routing/README.txt
192
193
  - spec/spec_helper.rb
193
194
  - spec/views/dbd_onto_engine/ontologies/index.html.haml_spec.rb
195
+ - spec/views/dbd_onto_engine/ontologies/show.html.haml_spec.rb
196
+ - spec/views/dbd_onto_engine/shared/_links.html.haml_spec.rb
194
197
  homepage: https://github.com/petervandenabeele/dbd_onto_engine
195
198
  licenses:
196
199
  - MIT
@@ -211,7 +214,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
211
214
  version: '0'
212
215
  requirements: []
213
216
  rubyforge_project:
214
- rubygems_version: 2.0.3
217
+ rubygems_version: 2.1.11
215
218
  signing_key:
216
219
  specification_version: 4
217
220
  summary: Display dbd_onto as part of a web app.
@@ -261,3 +264,5 @@ test_files:
261
264
  - spec/routing/README.txt
262
265
  - spec/spec_helper.rb
263
266
  - spec/views/dbd_onto_engine/ontologies/index.html.haml_spec.rb
267
+ - spec/views/dbd_onto_engine/ontologies/show.html.haml_spec.rb
268
+ - spec/views/dbd_onto_engine/shared/_links.html.haml_spec.rb