Skip to content
This repository has been archived by the owner on Jun 10, 2018. It is now read-only.

Commit

Permalink
Merge pull request #29 from sstephenson/1.9
Browse files Browse the repository at this point in the history
1.9.3 and higher
  • Loading branch information
josh committed Apr 3, 2014
2 parents f313ea1 + d5e0804 commit 95f178d
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 10 deletions.
6 changes: 0 additions & 6 deletions .travis.yml
@@ -1,12 +1,6 @@
rvm:
- 1.8.7
- 1.9.3
- 2.0.0
- jruby
- rbx
- rbx-2.0
- ree
- ruby-head

notifications:
disabled: true
1 change: 1 addition & 0 deletions hike.gemspec
Expand Up @@ -10,5 +10,6 @@ spec = Gem::Specification.new do |s|
s.files = Dir["README.md", "LICENSE", "lib/**/*.rb"]
s.require_path = "lib"
s.license = "MIT"
s.required_ruby_version = ">= 1.9.3"
s.add_development_dependency "rake"
end
13 changes: 12 additions & 1 deletion test/hike_test.rb
@@ -1,4 +1,15 @@
require "test/unit"
require "minitest/autorun"
require "hike"

FIXTURE_ROOT = File.expand_path(File.join(File.dirname(__FILE__), "fixtures"))

module Hike
if defined? Minitest::Test
klass = Minitest::Test
elsif defined? MiniTest::Unit::TestCase
klass = MiniTest::Unit::TestCase
end

class Test < klass
end
end
2 changes: 1 addition & 1 deletion test/test_normalized_array.rb
Expand Up @@ -6,7 +6,7 @@ def normalize_element(element)
end
end

class NormalizedArrayTest < Test::Unit::TestCase
class NormalizedArrayTest < Hike::Test
def setup
@array = UppercaseArray.new
end
Expand Down
4 changes: 2 additions & 2 deletions test/test_trail.rb
Expand Up @@ -233,7 +233,7 @@ def test_stat
end
end

class TrailTest < Test::Unit::TestCase
class TrailTest < Hike::Test
attr_reader :trail

def new_trail
Expand Down Expand Up @@ -271,7 +271,7 @@ def test_find_reflects_changes_in_the_file_system
include TrailTests
end

class IndexTest < Test::Unit::TestCase
class IndexTest < Hike::Test
attr_reader :trail

def new_trail
Expand Down

0 comments on commit 95f178d

Please sign in to comment.