Class: Spring::Commands::RSpec

Inherits:
Object
  • Object
show all
Defined in:
lib/spring/commands/rspec.rb

Instance Method Summary collapse

Instance Method Details

#callObject



16
17
18
19
# File 'lib/spring/commands/rspec.rb', line 16

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

#envObject



4
5
6
# File 'lib/spring/commands/rspec.rb', line 4

def env(*)
  "test"
end

#exec_nameObject



8
9
10
# File 'lib/spring/commands/rspec.rb', line 8

def exec_name
  "rspec"
end

#gem_nameObject



12
13
14
# File 'lib/spring/commands/rspec.rb', line 12

def gem_name
  "rspec-core"
end