Skip to content

Commit

Permalink
use #call to reset rspec start time setting before each run
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Erhard committed Aug 20, 2014
1 parent b30e068 commit 9f889c2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/spring/commands/rspec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ def exec_name
def gem_name
"rspec-core"
end

def call
::RSpec.configuration.start_time = Time.now
load Gem.bin_path(gem_name, exec_name)
end
end

Spring.register_command "rspec", RSpec.new
Expand Down

0 comments on commit 9f889c2

Please sign in to comment.