Class: Spring::Commands::RSpec
- Inherits:
-
Object
- Object
- Spring::Commands::RSpec
- Defined in:
- lib/spring/commands/rspec.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
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 |
#env ⇒ Object
4 5 6 |
# File 'lib/spring/commands/rspec.rb', line 4 def env(*) "test" end |
#exec_name ⇒ Object
8 9 10 |
# File 'lib/spring/commands/rspec.rb', line 8 def exec_name "rspec" end |
#gem_name ⇒ Object
12 13 14 |
# File 'lib/spring/commands/rspec.rb', line 12 def gem_name "rspec-core" end |