Skip to content

Commit

Permalink
Merge pull request #8 from chocolateboy/update-dependencies
Browse files Browse the repository at this point in the history
Compatibility updates, fixes and workarounds
  • Loading branch information
citizen428 authored Feb 5, 2017
2 parents aae2ac8 + 0c550d0 commit fe91cee
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 14 deletions.
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

0 comments on commit fe91cee

Please sign in to comment.