Permalink
Browse files

Add some very simple docs.

  • Loading branch information...
1 parent ae13cb1 commit 8e5ff7d0a7479e72764763af027973f82c49618c @josevalim josevalim committed Apr 15, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 railties/test/isolation/abstract_unit.rb
View
3 railties/test/isolation/abstract_unit.rb
@@ -90,6 +90,7 @@ def assert_body(expected, resp)
end
module Generation
+ # Build an application by invoking the generator and going through the whole stack.
def build_app(options = {})
FileUtils.rm_rf(app_path)
FileUtils.cp_r(tmp_path('app_template'), app_path)
@@ -115,6 +116,8 @@ def build_app(options = {})
add_to_config 'config.secret_token = "3b7cd727ee24e8444053437c36cc66c4"; config.session_store :cookie_store, :key => "_myapp_session"; config.active_support.deprecation = :log'
end
+ # Make a very basic app, without creating the whole directory structure.
+ # This is faster and simpler than the method above.
def make_basic_app
require "rails"
require "action_controller/railtie"

0 comments on commit 8e5ff7d

Please sign in to comment.