Skip to content

Commit

Permalink
Merge pull request #104 from enkessler/issue_103
Browse files Browse the repository at this point in the history
Fixing Issue #103
  • Loading branch information
r-cochran authored Feb 7, 2017
2 parents bc426f4 + b86b382 commit a787594
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/cuke_sniffer/rule_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,16 @@ module RuleConfig
lambda { |feature_rule_target, rule|
tokens = feature_rule_target.tags.collect { |line| line.split }.flatten

return_value = nil

tokens.each_with_index do |token, index|
if feature_rule_target.is_comment?(token) && tokens[0...index].any? { |x| x =~ /\A@/ }
return feature_rule_target.store_rule(rule)
return_value = feature_rule_target.store_rule(rule)
break
end
end

return_value
}
},
:universal_nested_step => {
Expand Down

0 comments on commit a787594

Please sign in to comment.