[rspec-users] Expecting a block to return a specific value
Guilherme Machado Cirne
gcirne at gmail.com
Sat Mar 21 19:38:54 EDT 2009
Hi,
I have the following method in a Rails view helper:
def title
content_for(:title) do
# some code which generates a title dynamically
end
end
How can I spec that the code inside the block returns the correct title?
TIA,
--
Guilherme Machado Cirne
gcirne at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20090321/61c61d02/attachment.html>
More information about the rspec-users
mailing list