Sha256: fb826668300874677539125d7a85b9188ef2d551708f805e7c6cd97d404647bc

Contents?: true

Size: 781 Bytes

Versions: 4

Compression:

Stored size: 781 Bytes

Contents

require 'spec_helper'

describe 'dbd_data_engine/shared/_links.html.haml' do

  before(:each) do
    render 'dbd_data_engine/shared/links'
  end

  it 'renders the link to ontologies' do
    rendered.should have_css('a[href="/ontologies"]', text: 'ontologies')
  end

  it 'renders the link to resources' do
    rendered.should have_css('a[href="/data/resources"]', text: 'resources')
  end

  it 'renders the link to contexts' do
    rendered.should have_css('a[href="/data/contexts"]', text: 'contexts')
  end

  it 'renders the link to new resource' do
    rendered.should have_css('a[href="/data/resources/new"]', text: 'new resource')
  end

  it 'renders the link to new context' do
    rendered.should have_css('a[href="/data/contexts/new"]', text: 'new context')
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dbd_data_engine-0.0.10 spec/views/dbd_data_engine/shared/_links.html.haml_spec.rb
dbd_data_engine-0.0.9 spec/views/dbd_data_engine/shared/_links.html.haml_spec.rb
dbd_data_engine-0.0.8 spec/views/dbd_data_engine/shared/_links.html.haml_spec.rb
dbd_data_engine-0.0.7 spec/views/dbd_data_engine/shared/_links.html.haml_spec.rb