I saw very minimum helpers spec references on the net unless one video I
saw on peepcode that contains one chapter talking about helpers spec,
well the example there showed us how to stub and then should receive
from session, model, but no example to show how to do should receive
plain html, like so:
<%= top_title %>
content_tag(:h1, 'Top Title')
require File.dirname(__FILE__) + '/../spec_helper'
describe ApplicationHelper do
describe 'top_title' do
top_title = mock('top_title')
error.. I've no idea how to do this. Please help me, I would appreciate
anyone who can give me a solution. Thanks!