Sha256: 856de82cbb03740071376280c3b3ce46b422ed35c7565e12006c56c6c0f707a8
Contents?: true
Size: 791 Bytes
Versions: 3
Compression:
Stored size: 791 Bytes
Contents
require File.dirname(__FILE__) + '/../../../spec_helper' describe SimpleNavigation::Adapters::Padrino do def create_adapter SimpleNavigation::Adapters::Padrino.new(@context) end before(:each) do @request = stub(:request) @context = stub(:context, :request => @request) @adapter = create_adapter end describe 'link_to' do it "should delegate to context" do @context.should_receive(:link_to).with('name', 'url', :my_option => true) @adapter.link_to('name', 'url', :my_option => true) end end describe 'content_tag' do it "should delegate to context" do @context.should_receive(:content_tag).with('type', 'content', :my_option => true) @adapter.content_tag('type', 'content', :my_option => true) end end end
Version data entries
3 entries across 3 versions & 1 rubygems