module Speci

Constants

VERSION

Attributes

last_specs[RW]
root_path[R]
specs_to_run[RW]

Public Instance Methods

reload_rails!() click to toggle source
# File lib/speci.rb, line 42
def reload_rails!
  if defined?(ActionDispatch)
    ActionDispatch::Reloader.cleanup!
    ActionDispatch::Reloader.prepare!
    puts "Reloading..."
  end
end
restart!() click to toggle source
# File lib/speci.rb, line 38
def restart!
  exec "ruby #{$PROGRAM_NAME}"
end
start() click to toggle source
# File lib/speci.rb, line 29
def start
  @root_path = Dir.pwd

  Listener.start
  require 'rspec/core'

  Console.readline
end