Skip to content

Commit 3bed58e

Browse files
committed
constant redefinition
1 parent d396f8b commit 3bed58e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/spec_helper.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
require 'json'
33
require 'yaml'
44

5-
STYLE_ROOT = File.expand_path('../..', __FILE__)
6-
PULL_REQUEST = File.join(STYLE_ROOT, 'pull-request')
7-
STYLE_ROOT = PULL_REQUEST if File.directory?(PULL_REQUEST)
5+
PROJECT_ROOT = File.expand_path('../..', __FILE__)
6+
PULL_REQUEST = File.join(PROJECT_ROOT, 'pull-request')
7+
STYLE_ROOT = File.directory?(PULL_REQUEST) ? PULL_REQUEST : PROJECT_ROOT
88

99
ISSN = Hash.new { |h,k| h[k] = [] }
1010
TITLES = Hash.new { |h,k| h[k] = [] }

0 commit comments

Comments
 (0)