Sha256: 6873a0c143ad23fa6649f03d947a814e93fa59689b41eecf1c3da05e907538be

Contents?: true

Size: 591 Bytes

Versions: 6

Compression:

Stored size: 591 Bytes

Contents

require File.dirname(__FILE__) + '/../../../spec_helper'

describe SimpleNavigation::Renderer::Base do
  before(:each) do
    @base_renderer = SimpleNavigation::Renderer::Base.new(:current_primary, :current_secondary)
  end
  it "should inclue ActionView::Helpers::UrlHelper" do
    @base_renderer.should respond_to(:link_to)
  end
  it "should include ActionView::Helpers::TagHelper" do
    @base_renderer.should respond_to(:content_tag)
  end
  it {@base_renderer.current_navigation.should == :current_primary}
  it {@base_renderer.current_sub_navigation.should == :current_secondary}
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
andi-simple-navigation-1.1.2 spec/lib/simple_navigation/renderer/base_spec.rb
andi-simple-navigation-1.2.0 spec/lib/simple_navigation/renderer/base_spec.rb
andi-simple-navigation-1.2.1 spec/lib/simple_navigation/renderer/base_spec.rb
simple-navigation-1.1.2 spec/lib/simple_navigation/renderer/base_spec.rb
simple-navigation-1.2.1 spec/lib/simple_navigation/renderer/base_spec.rb
simple-navigation-1.2.0 spec/lib/simple_navigation/renderer/base_spec.rb