Skip to content

Commit

Permalink
Fix specs when running without certain backends available
Browse files Browse the repository at this point in the history
  • Loading branch information
betamatt committed Jul 29, 2010
1 parent f0e2777 commit 606c177
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/spec_helper.rb
Expand Up @@ -20,12 +20,12 @@
require "setup/#{backend}"
require "backend/#{backend}_job_spec"
BACKENDS << backend.to_sym
rescue => e
rescue Exception => e
# Allow specs to run when not all of the databases are installed. Other exceptions should
# still bomb the spec run so that problems are not hidden by accident.
# Classes are referenced by name rather than directly since they may have been the class
# triggering a load error when the Mongo or DM gems aren't present.
raise unless %w(LoadError DataObjects::SQLError Mongo::ConnectionFailure).include?(e.class.name)
raise unless %w(MissingSourceFile LoadError DataObjects::SQLError Mongo::ConnectionFailure).include?(e.class.name)
puts "Unable to load #{backend} backend! #{$!}"
end
end
Expand Down

0 comments on commit 606c177

Please sign in to comment.