Sha256: 27071062fc307cd155afdfe438f679a0635755ef74676a4d8fbdee846905846f

Contents?: true

Size: 665 Bytes

Versions: 5

Compression:

Stored size: 665 Bytes

Contents

require 'spec_helper'

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

  let(:fact_with_context) do
    graph = TestFactories::Graph.full
    fact = graph.last
    FactWithContext.new(fact: fact, graph: graph)
  end

  before(:each) do
    render 'dbd_data_engine/resources/fact_with_context', fact_with_context: fact_with_context
  end

  it 'renders the fact predicate' do
    rendered.should have_css('td', text: 'fact_predicate')
  end

  it 'renders the fact object' do
    rendered.should have_css('td', text: 'whooha')
  end

  it 'renders the context_summary' do
    rendered.should have_css('td', text: 'public 2013-10-13')
  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/_fact_with_context.html.haml_spec.rb
dbd_data_engine-0.0.9 spec/views/dbd_data_engine/resources/_fact_with_context.html.haml_spec.rb
dbd_data_engine-0.0.8 spec/views/dbd_data_engine/resources/_fact_with_context.html.haml_spec.rb
dbd_data_engine-0.0.7 spec/views/dbd_data_engine/resources/_fact_with_context.html.haml_spec.rb
dbd_data_engine-0.0.6 spec/views/dbd_data_engine/resources/_fact_with_context.html.haml_spec.rb