1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
|
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
|