Re: [rspec-users] [RAILS] [rspec 2.4.0] helper spec works but rails escapes all output

2011-02-03 Thread Rob Aldred
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

[rspec-users] [RAILS] [rspec 2.4.0] helper spec works but rails escapes all output

2011-02-02 Thread Rob Westgeest
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