Top Level Namespace
Defined Under Namespace
Modules: LearnGenerate
Classes: App, Application, ApplicationController, CLI, ConnectionAdapter, ErbMaker, NameOfClass, SQLRunner
Constant Summary
collapse
- DBNAME =
"set_db_name"
- DB =
ActiveRecord::Base.connection
Instance Method Summary
collapse
Instance Method Details
#__ ⇒ Object
19
20
21
|
# File 'lib/templates/activerecord/spec/spec_helper.rb', line 19
def __
raise "Replace __ with test code."
end
|
#app ⇒ Object
29
30
31
|
# File 'lib/templates/sinatra-mvc/spec/spec_helper.rb', line 29
def app
Rack::Builder.parse_file('config.ru').first
end
|
#run_rake_task(task) ⇒ Object
12
13
14
15
16
17
|
# File 'lib/templates/activerecord/spec/spec_helper.rb', line 12
def run_rake_task(task)
RAKE_APP[task].invoke
if task == 'db:migrate'
RAKE_APP[task].reenable
end
end
|