Sha256: e405743640d82a62fb076b98159c5872ed3dc1a51b9448c7aa567df48b4afb0a

Contents?: true

Size: 810 Bytes

Versions: 4

Compression:

Stored size: 810 Bytes

Contents

# This file gets loaded when you run:
#   rake console
# It loads the following classes to make using the application via the console easier:
# 
# * Mack::TestHelpers
# * Mack::Routes::Urls

fl = File.join(File.dirname(__FILE__), "..")

require File.join(fl, "..", "..", "bin", "gem_load_path")

require File.join(fl, "..", "mack")

require File.join(fl, "testing", "helpers")

# self.send(:include, Mack::TestHelpers)
self.send(:include, Mack::Routes::Urls)

# When using the Mack console if you edit any files
# you can reload them in the console using this method
# without having to exit the console and start again.
def reload!
  ivar_cache("_rack_reloader") do
    Mack::Reloader.new(nil)
  end.reload!
end

# Prevent AutoRunner from getting executed when user exits out of console
Test::Unit.run = true

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mack-0.8.0.100 lib/mack/initialization/console.rb
mack-0.8.0.101 lib/mack/initialization/console.rb
mack-0.8.0 lib/mack/initialization/console.rb
mack-0.8.0.2 lib/mack/initialization/console.rb