Skip to content

Commit f17a93f

Browse files
author
Matthew Erhard
committed
verify RSpec and its configuration object are defined
1 parent 9f889c2 commit f17a93f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/spring/commands/rspec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def gem_name
1414
end
1515

1616
def call
17-
::RSpec.configuration.start_time = Time.now
17+
::RSpec.configuration.start_time = Time.now if defined?(::RSpec.configuration)
1818
load Gem.bin_path(gem_name, exec_name)
1919
end
2020
end

0 commit comments

Comments
 (0)