Skip to content

Commit

Permalink
Fixing specs for all versions of Ruby.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Bleigh committed Jul 29, 2011
1 parent 9192a26 commit 1a27b99
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -4,3 +4,4 @@ rvm:
- rbx
- ree
- ruby-head
- jruby
12 changes: 0 additions & 12 deletions spec/hashie/mash_spec.rb
Expand Up @@ -225,18 +225,6 @@ class SubMash < Hashie::Mash
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
Expand Down

0 comments on commit 1a27b99

Please sign in to comment.