dbd_onto_engine 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -30,6 +30,27 @@ module DbdOntoEngine
30
30
  end
31
31
  end
32
32
  end
33
+
34
+ describe "GET /ontologies/:id" do
35
+
36
+ context "routing" do
37
+ it "when the engine is mounted under /" do
38
+ dbd_onto_engine.ontology_path(id: 'foo').should == '/ontologies/foo'
39
+ end
40
+ end
41
+
42
+ context "page content" do
43
+
44
+ before(:each) { visit dbd_onto_engine.ontology_path(id: 'context') }
45
+
46
+ it "shows the context ontology" do
47
+ expect(page).to have_text('Context')
48
+ end
49
+
50
+ it "shows the context:visibility predicate" do
51
+ expect(page).to have_text('context:visibility')
52
+ end
53
+ end
54
+ end
33
55
  end
34
56
  end
35
-
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dbd_onto_engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Vandenabeele
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: dbd_onto
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: haml-rails
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -119,8 +133,10 @@ files:
119
133
  - app/controllers/dbd_onto_engine/application_controller.rb
120
134
  - app/controllers/dbd_onto_engine/ontologies_controller.rb
121
135
  - app/helpers/dbd_onto_engine/application_helper.rb
122
- - app/views/dbd_onto_engine/ontologies/_ontology_entry.html.haml
136
+ - app/views/dbd_onto_engine/ontologies/_ontology_predicate.html.haml
137
+ - app/views/dbd_onto_engine/ontologies/_ontology_title.html.haml
123
138
  - app/views/dbd_onto_engine/ontologies/index.html.haml
139
+ - app/views/dbd_onto_engine/ontologies/show.html.haml
124
140
  - app/views/layouts/dbd_onto_engine/application.html.haml
125
141
  - config/routes.rb
126
142
  - lib/dbd_onto_engine/engine.rb
@@ -1 +0,0 @@
1
- %h3= ontology_entry.capitalize