Skip to content

Commit

Permalink
Fix scenario_features to not exclude started
Browse files Browse the repository at this point in the history
Fix a %() that should be %w().  Also allow override of this exclude.
  • Loading branch information
tpope committed Jul 8, 2009
1 parent 3097d91 commit 498ab89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/pickler.rb
Expand Up @@ -118,9 +118,9 @@ def local_features
Dir[features_path('**','*.feature')].map {|f|feature(f)}.select {|f|f.pushable?}
end

def scenario_features
def scenario_features(excluded_states = %w(unscheduled unstarted))
project.stories(scenario_word, :includedone => true).reject do |s|
%(unscheduled unstarted).include?(s.current_state)
Array(excluded_states).map {|s| s.to_s}.include?(s.current_state)
end.select do |s|
s.to_s =~ /^\s*#{Regexp.escape(scenario_word)}:/ && parser.parse(s.to_s)
end
Expand Down

0 comments on commit 498ab89

Please sign in to comment.