aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/fixtures
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2005-11-07 18:06:44 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2005-11-07 18:06:44 +0000
commite55426a798f6cd80f5a0f9a5937b90cc20341b72 (patch)
treea86923106d33400dc7e3746a8f360cba97f841a8 /railties/test/fixtures
parent0ceb9150d5daa3afed4fcf7afa29216a8f7132a1 (diff)
downloadrails-e55426a798f6cd80f5a0f9a5937b90cc20341b72.tar.gz
rails-e55426a798f6cd80f5a0f9a5937b90cc20341b72.tar.bz2
rails-e55426a798f6cd80f5a0f9a5937b90cc20341b72.zip
Raise in stubby/init.rb if it doesn't have access to directory or config. loaded_plugins is a set of plugin names (so it will be usable with multiple paths, gems, etc).
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2924 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/test/fixtures')
-rw-r--r--railties/test/fixtures/plugins/default/stubby/init.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/railties/test/fixtures/plugins/default/stubby/init.rb b/railties/test/fixtures/plugins/default/stubby/init.rb
index fc9470fd97..81beeb0d32 100644
--- a/railties/test/fixtures/plugins/default/stubby/init.rb
+++ b/railties/test/fixtures/plugins/default/stubby/init.rb
@@ -1,2 +1,7 @@
+# I have access to my directory and the Rails config.
+raise 'directory expected but undefined in init.rb' unless defined? directory
+raise 'config expected but undefined in init.rb' unless defined? config
+
+# My lib/ dir must be in the load path.
require 'stubby_mixin'
-raise unless defined? StubbyMixin
+raise 'missing mixin from my lib/ dir' unless defined? StubbyMixin