[DRE-commits] [ruby-grape] 03/03: Mark test pending until ruby-rack-contrib is packaged

Hleb Valoshka tsfgnu-guest at moszumanska.debian.org
Tue Jul 7 12:47:04 UTC 2015


This is an automated email from the git hooks/post-receive script.

tsfgnu-guest pushed a commit to branch patch-queue/master
in repository ruby-grape.

commit 8c9155d4942f78f729220b8fb41513564090656b
Author: Hleb Valoshka <375gnu at gmail.com>
Date:   Tue Jul 7 15:14:04 2015 +0300

    Mark test pending until ruby-rack-contrib is packaged
---
 spec/grape/entity_spec.rb | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/spec/grape/entity_spec.rb b/spec/grape/entity_spec.rb
index 2677dd4..41a079a 100644
--- a/spec/grape/entity_spec.rb
+++ b/spec/grape/entity_spec.rb
@@ -264,7 +264,11 @@ XML
     end
 
     it 'presents with jsonp utilising Rack::JSONP' do
-      require 'rack/contrib'
+      begin
+        require 'rack/contrib'
+      rescue LoadError
+        pending "ruby-rack-contrib is not packaged yet"
+      end
 
       # Include JSONP middleware
       subject.use Rack::JSONP

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-grape.git



More information about the Pkg-ruby-extras-commits mailing list