Description: Patch out usage of pending_for which we don't have yet
Author: Antonio Terceiro, Christian Hofstaedtler
Origin: vendor
Bug-Debian: https://bugs.debian.org/796514
Forwarded: not-needed
Last-Update: 2016-03-02
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
Index: ruby-hashie/spec/hashie/mash_spec.rb
===================================================================
--- ruby-hashie.orig/spec/hashie/mash_spec.rb
+++ ruby-hashie/spec/hashie/mash_spec.rb
@@ -363,7 +363,9 @@ describe Hashie::Mash do
 
     it 'is able to access an unknown suffixed key as a method' do
       # See https://github.com/intridea/hashie/pull/285 for more information
-      pending_for(engine: 'ruby', versions: %w(2.2.0 2.2.1 2.2.2))
+      if RUBY_VERSION < '2.2.3'
+        pending 'Bug in MRI 2.2.x means this behavior is broken in those versions'
+      end
 
       %w(= ? ! _).each do |suffix|
         expect(subject.method(:"xyz#{suffix}")).to_not be_nil
Index: ruby-hashie/spec/spec_helper.rb
===================================================================
--- ruby-hashie.orig/spec/spec_helper.rb
+++ ruby-hashie/spec/spec_helper.rb
@@ -5,7 +5,6 @@ end
 
 require 'rspec'
 require 'hashie'
-require 'rspec/pending_for'
 
 RSpec.configure do |config|
   config.expect_with :rspec do |expect|
Index: ruby-hashie/spec/hashie/extensions/strict_key_access_spec.rb
===================================================================
--- ruby-hashie.orig/spec/hashie/extensions/strict_key_access_spec.rb
+++ ruby-hashie/spec/hashie/extensions/strict_key_access_spec.rb
@@ -6,7 +6,6 @@ describe Hashie::Extensions::StrictKeyAc
   end
 
   shared_examples_for 'StrictKeyAccess with valid key' do |options = {}|
-    before { pending_for(options[:pending]) } if options[:pending]
     context 'set' do
       let(:new_value) { 42 }
       it('returns value') do
@@ -25,7 +24,6 @@ describe Hashie::Extensions::StrictKeyAc
     end
   end
   shared_examples_for 'StrictKeyAccess with invalid key' do |options = {}|
-    before { pending_for(options[:pending]) } if options[:pending]
     context 'access' do
       it('raises an error') do
         # Formatting of the error message varies on Rubinius and ruby-head
