Hi
Since rails 3 all strings are escaped, unlike rails 2 where you had to use the
h method
use .html_safe in your helper method to stop the output escaping
the test is correct
This article will explain a little bit more
http://markconnell.co.uk/posts/2010/02/rails-3-html-escaping
--
Rob Aldred
Hi,
rspec version: 2.4.0
Given this helper - snippet:
def participants_summary table
table.participants.collect{|participant|
show_short_participant_link(participant) }.join(', ')
end
def show_table_link(table)
link_to(table.name, :action => :show, :id => table)
end
---
and