Permalink
Browse files

rescue in the case that a plugin doesnt have an init.rb

  • Loading branch information...
1 parent c8299c9 commit 2d0f8292025e9e43e30bc407408dec1bcfd9da06 @matthewrudy matthewrudy committed with Nov 5, 2009
Showing with 4 additions and 2 deletions.
  1. +4 −2 test/test_helper.rb
View
@@ -38,5 +38,7 @@ def create_fixtures(*table_names, &block)
load(File.dirname(__FILE__) + "/schema.rb")
#initialize the plugin
-require File.dirname(__FILE__) + '/../init'
-
+begin
+ require File.dirname(__FILE__) + '/../init'
+rescue MissingSourceFile # not all plugins have an init.rb
+end

0 comments on commit 2d0f829

Please sign in to comment.