Class: Spring::Commands::Test

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

Instance Method Summary collapse

Instance Method Details

#call(args) ⇒ Object



33
34
35
36
# File 'lib/spring/commands.rb', line 33

def call(args)
  ARGV.replace args
  require File.expand_path(args.first)
end

#envObject



24
25
26
# File 'lib/spring/commands.rb', line 24

def env
  "test"
end

#setupObject



28
29
30
31
# File 'lib/spring/commands.rb', line 28

def setup
  $LOAD_PATH.unshift "test"
  require "test_helper"
end