From 562201f7ddf1df8f98f961df9037d5b8147f186b Mon Sep 17 00:00:00 2001 From: Mike Dvorkin Date: Wed, 23 Nov 2011 21:33:03 -0800 Subject: [PATCH] Streamlined error reporting for the extension specs --- spec/ext/action_view_spec.rb | 4 ++-- spec/ext/active_record_spec.rb | 4 ++-- spec/ext/active_support_spec.rb | 4 ++-- spec/ext/mongo_mapper_spec.rb | 4 ++-- spec/ext/mongoid_spec.rb | 3 +-- 5 files changed, 9 insertions(+), 10 deletions(-) diff --git a/spec/ext/action_view_spec.rb b/spec/ext/action_view_spec.rb index 1d58868..8ef4443 100644 --- a/spec/ext/action_view_spec.rb +++ b/spec/ext/action_view_spec.rb @@ -20,6 +20,6 @@ begin end end -rescue LoadError - puts "Skipping ActionView specs..." +rescue LoadError => error + puts "Skipping ActionView specs: #{error}" end diff --git a/spec/ext/active_record_spec.rb b/spec/ext/active_record_spec.rb index 4ebc673..1a4c57c 100644 --- a/spec/ext/active_record_spec.rb +++ b/spec/ext/active_record_spec.rb @@ -162,6 +162,6 @@ EOS end end -rescue LoadError - puts "Skipping ActiveRecord specs..." +rescue LoadError => error + puts "Skipping ActiveRecord specs: #{error}" end diff --git a/spec/ext/active_support_spec.rb b/spec/ext/active_support_spec.rb index 696144c..957d174 100644 --- a/spec/ext/active_support_spec.rb +++ b/spec/ext/active_support_spec.rb @@ -22,6 +22,6 @@ begin end end -rescue LoadError - puts "Skipping ActiveSupport specs..." +rescue LoadError => error + puts "Skipping ActiveSupport specs: #{error}" end diff --git a/spec/ext/mongo_mapper_spec.rb b/spec/ext/mongo_mapper_spec.rb index 5542491..b01df4b 100644 --- a/spec/ext/mongo_mapper_spec.rb +++ b/spec/ext/mongo_mapper_spec.rb @@ -100,6 +100,6 @@ EOS end end -rescue LoadError - puts "Skipping MongoMapper specs..." +rescue LoadError => error + puts "Skipping MongoMapper specs: #{error}" end diff --git a/spec/ext/mongoid_spec.rb b/spec/ext/mongoid_spec.rb index da80b97..3706c68 100644 --- a/spec/ext/mongoid_spec.rb +++ b/spec/ext/mongoid_spec.rb @@ -87,6 +87,5 @@ EOS end rescue LoadError => error - puts "Missing mongoid gem, skipping mongoid specs" - puts "Skipping mongoid specs: #{error}" + puts "Skipping Mongoid specs: #{error}" end