Created
May 4, 2010 02:54
-
-
Save phs/388888 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 8dadcddb93013dcd565d8e8b2964d8ccdff0a793 Mon Sep 17 00:00:00 2001 | |
From: Phil Smith <phil.h.smith@gmail.com> | |
Date: Mon, 3 May 2010 19:52:54 -0700 | |
Subject: [PATCH] Don't assume MyApp::Application is defined in initializer | |
http://github.com/rspec/rspec-rails/issues#issue/43 | |
--- | |
.../config/initializers/rspec_generator.rb.tt | 2 +- | |
1 files changed, 1 insertions(+), 1 deletions(-) | |
diff --git a/lib/generators/rspec/install/templates/config/initializers/rspec_generator.rb.tt b/lib/generators/rspec/install/templates/config/initializers/rspec_generator.rb.tt | |
index 224a837..2359e39 100644 | |
--- a/lib/generators/rspec/install/templates/config/initializers/rspec_generator.rb.tt | |
+++ b/lib/generators/rspec/install/templates/config/initializers/rspec_generator.rb.tt | |
@@ -3,4 +3,4 @@ | |
g.integration_tool :rspec | |
g.test_framework :rspec | |
end | |
-end | |
+end if defined? <%= app_name %> | |
-- | |
1.6.6 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment