Sha256: 72adb44efbe0fb61ef8195e67362a683133b19370fb7982fc7ebbf5a9312334e

Contents?: true

Size: 573 Bytes

Versions: 5

Compression:

Stored size: 573 Bytes

Contents

require 'spec_helper'

describe 'dbd_data_engine/resources/index.html.haml' do

  let(:resources_with_contexts) { [[]] }

  before(:each) do
    assign(:resources_with_contexts, resources_with_contexts)
  end

  it 'renders' do
    render
  end

  it 'renders the resource partial' do
    render.should render_template(partial: '_resource_with_contexts')
  end

  it 'renders the div class resource' do
    render.should have_css('div[class=resource]')
  end

  it 'renders the links partial' do
    render.should render_template('dbd_data_engine/shared/_links')
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
dbd_data_engine-0.0.10 spec/views/dbd_data_engine/resources/index.html.haml_spec.rb
dbd_data_engine-0.0.9 spec/views/dbd_data_engine/resources/index.html.haml_spec.rb
dbd_data_engine-0.0.8 spec/views/dbd_data_engine/resources/index.html.haml_spec.rb
dbd_data_engine-0.0.7 spec/views/dbd_data_engine/resources/index.html.haml_spec.rb
dbd_data_engine-0.0.6 spec/views/dbd_data_engine/resources/index.html.haml_spec.rb