diff options
author | Michael Bleigh <michael@intridea.com> | 2011-07-28 23:43:01 -0500 |
---|---|---|
committer | Michael Bleigh <michael@intridea.com> | 2011-07-28 23:43:01 -0500 |
commit | 1a27b990cfa891dd72dd8c9855473eb0ef7c910b (patch) | |
tree | 4eca08685d2090521df6e07d5b19669aa25603df | |
parent | 9192a26828e0dd4fd0a7058f70cbd8a031e22f1f (diff) | |
download | hashie-1a27b990cfa891dd72dd8c9855473eb0ef7c910b.tar.gz |
Fixing specs for all versions of Ruby.
-rw-r--r-- | .travis.yml | 1 | ||||
-rw-r--r-- | spec/hashie/mash_spec.rb | 12 |
2 files changed, 1 insertions, 12 deletions
diff --git a/.travis.yml b/.travis.yml index 76d9d28..ae76aef 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,3 +4,4 @@ rvm: - rbx - ree - ruby-head + - jruby diff --git a/spec/hashie/mash_spec.rb b/spec/hashie/mash_spec.rb index deec6e9..959b179 100644 --- a/spec/hashie/mash_spec.rb +++ b/spec/hashie/mash_spec.rb @@ -225,18 +225,6 @@ describe Hashie::Mash do it 'should respond to a set key' do Hashie::Mash.new(:abc => 'def').should be_respond_to(:abc) end - - unless defined?(JRUBY_VERSION) - it "should delegate properly using delegate library" do - class MashDelegate < DelegateClass(Hashie::Mash) - end - - delegate = MashDelegate.new(Hashie::Mash.new(:foo => 100)) - delegate.foo.should == 100 - delegate.should respond_to(:foo) - expect { delegate.bar }.to raise_error(NoMethodError) - end - end end context "#initialize" do |