diff options
author | Jonathan Rochkind <jonathan@dnil.net> | 2015-04-13 23:08:31 -0400 |
---|---|---|
committer | Michael Herold <michael.j.herold@gmail.com> | 2015-04-18 19:30:04 -0500 |
commit | ad6b08cb52e3b96d346f51c486b01fc67ca6c150 (patch) | |
tree | 556649de5b4492e465baf5c320ff9b428348317a | |
parent | 98567af91f2fff058ce5eab9427b0aca1604bae4 (diff) | |
download | hashie-ad6b08cb52e3b96d346f51c486b01fc67ca6c150.tar.gz |
MRI 2.2.2 fixes bug, can test #method again
-rw-r--r-- | .travis.yml | 2 | ||||
-rw-r--r-- | spec/hashie/mash_spec.rb | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml index bec5bf1..4b4fda9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,7 +3,7 @@ sudo: false cache: bundler rvm: - - 2.2.1 + - 2.2.2 - 2.1.2 - 2.1.0 - 2.0.0 diff --git a/spec/hashie/mash_spec.rb b/spec/hashie/mash_spec.rb index 42ef67f..10bfc82 100644 --- a/spec/hashie/mash_spec.rb +++ b/spec/hashie/mash_spec.rb @@ -346,6 +346,7 @@ describe Hashie::Mash do it 'responds to a set key with a suffix' do %w(= ? ! _).each do |suffix| expect(subject).to be_respond_to(:"abc#{suffix}") + expect(subject.method(:"abc#{suffix}")).to_not be_nil end # for ruby 2.2 - https://github.com/intridea/hashie/pull/285 @@ -358,6 +359,7 @@ describe Hashie::Mash do it 'responds to an unknown key with a suffix' do %w(= ? ! _).each do |suffix| expect(subject).to be_respond_to(:"xyz#{suffix}") + expect(subject.method(:"xyz#{suffix}")).to_not be_nil end # for ruby 2.2 - https://github.com/intridea/hashie/pull/285 |