Fixing specs for all versions of Ruby.

This commit is contained in:
Michael Bleigh 2011-07-28 23:43:01 -05:00
parent 9192a26828
commit 1a27b990cf
2 changed files with 1 additions and 12 deletions

View File

@ -4,3 +4,4 @@ rvm:
- rbx
- ree
- ruby-head
- jruby

View File

@ -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