Skip to content

Commit

Permalink
Fixing test for JRuby. Thanks to @enebo
Browse files Browse the repository at this point in the history
  • Loading branch information
jodosha committed Nov 8, 2014
1 parent 7663694 commit 0f1e793
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Expand Up @@ -19,5 +19,4 @@ matrix:
allow_failures:
- rvm: 2.2
- rvm: rbx-2
- rvm: jruby
- rvm: jruby-head
4 changes: 2 additions & 2 deletions test/kernel_test.rb
Expand Up @@ -1177,8 +1177,8 @@ def to_f
Book = Struct.new(:title)

SimpleObject = Class.new(BasicObject) do
def respond_to?(method_name)
method_name == :to_s
def respond_to?(method_name, include_private=false)
method_name.to_sym == :to_s
end

def to_s
Expand Down

1 comment on commit 0f1e793

@enebo
Copy link

@enebo enebo commented on 0f1e793 Nov 10, 2014 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.