Sha256: e5caebe79e2e1d263eb2edc9b85ecd3d092827d07548dbb6a5340bebf4744af7

Contents?: true

Size: 923 Bytes

Versions: 5

Compression:

Stored size: 923 Bytes

Contents

# encoding: utf-8
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')

describe Crumby::Renderer::Base do
  let(:trail) { stub :trail }
  let(:view) { stub :view }
  let(:options) { { test: true } }
  subject { Crumby::Renderer::Base.new(trail, view, options) }

  describe "#new" do
    its(:trail) { should equal trail }
    its(:view) { should equal view }
    its(:options) { should include options }
  end

  describe "#render" do
    pending "todo"
  end

  describe "#default_options" do
    it { subject.default_options.should be_empty }
  end

  describe "#render_list" do
    it "should raise a NotImplementedError error" do
      expect { subject.render_list }.to raise_error NotImplementedError
    end
  end

  describe "#render_entry" do
    it "should raise a NotImplementedError error" do
      expect { subject.render_entry(stub) }.to raise_error NotImplementedError
    end
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
crumby-1.1.4 spec/crumby/renderer/base_spec.rb
crumby-1.1.3 spec/crumby/renderer/base_spec.rb
crumby-1.1.2 spec/crumby/renderer/base_spec.rb
crumby-1.1.1 spec/crumby/renderer/base_spec.rb
crumby-1.1.0 spec/crumby/renderer/base_spec.rb