Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility updates, fixes and workarounds #8

Merged
merged 1 commit into from
Feb 5, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
sudo: false
language: ruby
dist: trusty
rvm:
- 1.9.3
- 2.0.0
- jruby
- rbx-19mode
- 2.1.10
- 2.2.6
- 2.3.3
- 2.4.0
- jruby-1.7.26
- rbx
- ruby-head
matrix:
allow_failures:
- rvm: rbx
14 changes: 11 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
source 'https://rubygems.org'

gem 'rake'
gem 'minitest', group: :test
gem 'rdoc', platform: :rbx
group :test do
gem 'minitest'
end

group :test, :development do
gem 'rake'
end

group :development do
gem 'rdoc', platform: :rbx
end
9 changes: 6 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
GEM
remote: https://rubygems.org/
specs:
minitest (2.6.0)
rake (0.9.2)
rdoc (4.0.0)
minitest (5.10.1)
rake (12.0.0)
rdoc (5.0.0)

PLATFORMS
java
Expand All @@ -13,3 +13,6 @@ DEPENDENCIES
minitest
rake
rdoc

BUNDLED WITH
1.14.3
8 changes: 4 additions & 4 deletions test/test_methodfinder.rb
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
require 'minitest/autorun'
require 'methodfinder'

class TestMethodFinder < MiniTest::Unit::TestCase
class TestMethodFinder < Minitest::Test
def test_finding_method_with_no_argument_or_block
result = MethodFinder.find('a', 'A')
assert result.include?("String#capitalize")
assert result.include?("String#upcase")
end

def test_finding_method_with_an_argument_and_no_block
result = MethodFinder.find(10, 1, 3)
assert result.include?("Fixnum#%")
assert result.include?("Fixnum#modulo")
result = MethodFinder.find('twothreefour', 'three', 3, 5)
assert result.include?("String#slice")
assert result.include?("String#slice!")
end

def test_finding_method_with_a_block
Expand Down