Skip to content

Commit

Permalink
Adapt to the standard idiom for null objects for Durations
Browse files Browse the repository at this point in the history
  • Loading branch information
brasmusson committed Oct 15, 2014
1 parent 2685e0d commit 7b1d1d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cucumber/formatter/gherkin_formatter_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def before_examples(examples)
#used for capturing duration
def after_step(step)
unless @outline and @options[:expand] and not @in_instantiated_scenario
if step.duration.exist?
if not step.duration.nil?
@gf.append_duration(step.duration.duration / 10 ** 9.0)
end
end
Expand Down

0 comments on commit 7b1d1d9

Please sign in to comment.