Skip to content

Commit

Permalink
Occur error when blank feature
Browse files Browse the repository at this point in the history
  • Loading branch information
gongo committed Nov 21, 2016
1 parent b0605ef commit 41653a4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/turnip_formatter/ext/turnip/rspec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ def run(feature_file)
original_run(feature_file)

feature = Turnip::Builder.build(feature_file)
return nil if feature.nil?

example_group = ::RSpec.world.example_groups.last

update_metadata(feature, example_group)
Expand Down

0 comments on commit 41653a4

Please sign in to comment.