Skip to content

Commit

Permalink
use new accessor for example group metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
afeld committed Jun 26, 2015
1 parent 1e71c21 commit caa2ee8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/guard/rspec_formatter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def self.extract_spec_location(metadata)
location = metadata[:location]

until spec_path?(location)
metadata = metadata[:example_group]
metadata = metadata[:parent_example_group]

unless metadata
STDERR.puts "no spec file found for #{root_metadata[:location]}"
Expand Down

0 comments on commit caa2ee8

Please sign in to comment.