spec/lib/simple_navigation/adapters/padrino_spec.rb in simple-navigation-3.10.0 vs spec/lib/simple_navigation/adapters/padrino_spec.rb in simple-navigation-3.10.1

- old
+ new

@@ -6,10 +6,11 @@ SimpleNavigation::Adapters::Padrino.new(@context) end before(:each) do @request = stub(:request) + @content = stub(:content) @context = stub(:context, :request => @request) @adapter = create_adapter end describe 'link_to' do @@ -19,11 +20,12 @@ end end describe 'content_tag' do it "should delegate to context" do + @content.should_receive(:html_safe).and_return('content') @context.should_receive(:content_tag).with('type', 'content', :my_option => true) - @adapter.content_tag('type', 'content', :my_option => true) + @adapter.content_tag('type', @content, :my_option => true) end end end