Hi,
I'm starting to learn Rails. I'm using Rails 3.
In my simple App, I have the following code:
<% @tasks.each do |task| %>
...
<td><%= friendly_estimate task.estimate, { :compact => true } %></td>
...
<% end %>
The mission for me is that I would like to test if the view really sends the :compact option to my method to ensure that the estimate is shown currently.
So the spec kinda is:
Estimates must be shown in compact view, on lists pages
I'm new to testing in Ruby, and totally new to View testing, so I hope someone can help out, or point me in the right direction.
Thanks :)