Sha256: 28024b4fb1028f2c21aad28a316e648e7a02a8bb9d487a814acaf5c297901497

Contents?: true

Size: 556 Bytes

Versions: 5

Compression:

Stored size: 556 Bytes

Contents

require 'spec_helper'

describe ContextPresenter do
  context 'context_summary' do

    let(:graph) { TestFactories::Graph.full }
    let(:context) { graph.to_a[0..1] }
    let(:context_presenter) { described_class.new(context: context) }

    it '#context_summary returns the context_summuary' do
      context_presenter.context_summary.should == 'public 2013-10-13'
    end

    context 'raises when new is not given all arguments' do
      it 'without context' do
        lambda{ described_class.new({}) }.should raise_error
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
dbd_data_engine-0.0.10 spec/presenters/context_presenter/context_summary_spec.rb
dbd_data_engine-0.0.9 spec/presenters/context_presenter/context_summary_spec.rb
dbd_data_engine-0.0.8 spec/presenters/context_presenter/context_summary_spec.rb
dbd_data_engine-0.0.7 spec/presenters/context_presenter/context_summary_spec.rb
dbd_data_engine-0.0.6 spec/presenters/context_presenter/context_summary_spec.rb