Sha256: a5ff9a0f2dbe6a7e4edfe7bf640ac8fa2af80925904bee78fac2a685931db7a9
Contents?: true
Size: 1.39 KB
Versions: 1
Compression:
Stored size: 1.39 KB
Contents
require 'spec_helper' module DbdOntoEngine describe "Ontologies" do describe "GET /ontologies" do context "routing" do it "when the engine is mounted under /" do dbd_onto_engine.ontologies_path.should == '/ontologies' end end context "page content" do before(:each) do visit(dbd_onto_engine.ontologies_path) end it "shows the ontologies" do expect(page).to have_text('Ontologies') end it "shows the link to the context ontology" do #expect(page).to have_link(url_for(action: 'show', id: 'context')) # have_text('Context') expect(page).to have_text('Context') end it "shows the link to the meta ontology" do expect(page).to have_text('Meta') end end end describe "GET /ontologies/:id" do context "routing" do it "when the engine is mounted under /" do dbd_onto_engine.ontology_path(id: 'foo').should == '/ontologies/foo' end end context "page content" do before(:each) { visit dbd_onto_engine.ontology_path(id: 'context') } it "shows the context ontology" do expect(page).to have_text('Context') end it "shows the context:visibility predicate" do expect(page).to have_text('context:visibility') end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dbd_onto_engine-0.0.4 | spec/features/dbd_onto_engine/ontologies_spec.rb |