Permalink
Browse files

Remove "Feature:" from card body as it's already in the card type

  • Loading branch information...
1 parent 4df7b45 commit 7280c10ba6baba8dbee1ec507b8aa34900f44311 @brynary committed Jan 20, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/features2cards/card.rb
@@ -6,7 +6,7 @@ class Card
attr_reader :footer
def self.for_feature(feature)
- new("Feature", feature.header.split("\n").first, "")
+ new("Feature", feature.header.split("\n").first.gsub(/^\s*Feature:/, '').strip, "")
end
def self.for_scenario(scenario)

0 comments on commit 7280c10

Please sign in to comment.