Sha256: ecbfb73b3b4d69cf155c29c9d28726a6962046594230d6bcb87674a8edb0abdf
Contents?: true
Size: 813 Bytes
Versions: 2
Compression:
Stored size: 813 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 Rack::Reloader.new(nil, 1) end.reload! end # Prevent AutoRunner from getting executed when user exits out of console Test::Unit.run = true
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mack-0.7.1.1 | lib/mack/initialization/console.rb |
mack-0.7.1 | lib/mack/initialization/console.rb |