Class: Diesel::Testing::Application

Inherits:
Rails::Application
  • Object
show all
Defined in:
lib/diesel/testing/application.rb

Instance Method Summary collapse

Instance Method Details

#initialize!Object



37
38
39
40
# File 'lib/diesel/testing/application.rb', line 37

def initialize!
  FileUtils.mkdir_p(Rails.root.join("db").to_s)
  super unless @initialized
end

#require_environment!Object



33
34
35
# File 'lib/diesel/testing/application.rb', line 33

def require_environment!
  initialize!
end