Please sign in to comment.
Raise in stubby/init.rb if it doesn't have access to directory or con…
…fig. 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
- Loading branch information...
Showing with 7 additions and 2 deletions.
|@@ -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.|
|-raise unless defined? StubbyMixin|
|+raise 'missing mixin from my lib/ dir' unless defined? StubbyMixin|