Permalink
Browse files

.blank? protection agaist silly users

  • Loading branch information...
1 parent 0e47553 commit e46deeaa5af324d9a53ea65079ab80ea4c51cc15 Elad Meidar committed Apr 11, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/views/features/show.txt.erb
@@ -1,5 +1,5 @@
Feature: <%= @feature.title %>
- <%= @feature.body.gsub("\n", "\n ")%>
+ <%= @feature.body.gsub("\n", "\n ") unless @feature.body.blank? %>
<% @feature.scenarios.each do |scenario| -%>
Scenario: <%= scenario.title%>

0 comments on commit e46deea

Please sign in to comment.