Skip to content

Commit 9f889c2

Browse files
author
Matthew Erhard
committed
use #call to reset rspec start time setting before each run
- solves jonleighton#18
1 parent b30e068 commit 9f889c2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/spring/commands/rspec.rb

+5
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ def exec_name
1212
def gem_name
1313
"rspec-core"
1414
end
15+
16+
def call
17+
::RSpec.configuration.start_time = Time.now
18+
load Gem.bin_path(gem_name, exec_name)
19+
end
1520
end
1621

1722
Spring.register_command "rspec", RSpec.new

0 commit comments

Comments
 (0)