Permalink
Browse files

this commented line should not be inside a loop

  • Loading branch information...
1 parent acfe944 commit 4ca7614364af602f17acaf82f8034dc7857eaf32 @thejamespinto thejamespinto committed Jan 24, 2012
@@ -18,11 +18,13 @@
it "renders a list of <%= ns_table_name %>" do
render
+<% unless webrat? -%>
+ # Run the generator again with the --webrat flag if you want to use webrat matchers
+<% end -%>
<% for attribute in output_attributes -%>
<% if webrat? -%>
rendered.should have_selector("tr>td", :content => <%= value_for(attribute) %>.to_s, :count => 2)
<% else -%>
- # Run the generator again with the --webrat flag if you want to use webrat matchers
assert_select "tr>td", :text => <%= value_for(attribute) %>.to_s, :count => 2
<% end -%>
<% end -%>
@@ -14,11 +14,13 @@
it "renders attributes in <p>" do
render
+<% unless webrat? -%>
+ # Run the generator again with the --webrat flag if you want to use webrat matchers
+<% end -%>
<% for attribute in output_attributes -%>
<% if webrat? -%>
rendered.should contain(<%= value_for(attribute) %>.to_s)
<% else -%>
- # Run the generator again with the --webrat flag if you want to use webrat matchers
rendered.should match(/<%= eval(value_for(attribute)) %>/)
<% end -%>
<% end -%>

0 comments on commit 4ca7614

Please sign in to comment.