Skip to content

Instantly share code, notes, and snippets.

@phlegx
Created October 2, 2012 14:43
Show Gist options
  • Save phlegx/3819689 to your computer and use it in GitHub Desktop.
Save phlegx/3819689 to your computer and use it in GitHub Desktop.
# rspec view
assert_select "tr>td", :text => "something1".to_s, :count => 2
assert_select "tr>td", :text => "something2".to_s, :count => 2
assert_select "tr>td", :text => "something3".to_s, :count => 2
#view:
...
%td
= ch.something1
%td
= ch.something2
%td
= ch.something3
(
= ch.something_else
)
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment