Sha256: 65215587a4564cf0dd304dfceb7f93cef5a8a80fb6e2ddd57c0a7b52fc9196d6
Contents?: true
Size: 915 Bytes
Versions: 10
Compression:
Stored size: 915 Bytes
Contents
module SimpleNavigation module Adapters describe Padrino do let(:adapter) { SimpleNavigation::Adapters::Padrino.new(context) } let(:content) { double(:content) } let(:context) { double(:context, request: request) } let(:request) { double(:request) } describe '#link_to' do it 'delegates to context' do expect(context).to receive(:link_to) .with('name', 'url', :my_option => true) adapter.link_to('name', 'url', :my_option => true) end end describe '#content_tag' do it 'delegates to context' do expect(content).to receive(:html_safe).and_return('content') expect(context).to receive(:content_tag) .with('type', 'content', my_option: true) adapter.content_tag('type', content, my_option: true) end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems