Skip to content

Commit

Permalink
1.8 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Burke Libbey committed Mar 3, 2012
1 parent 5b481cb commit a14f000
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ task :docs do
system("cd doc && git add . && git commit -am 'Regenerated docs' && git push origin gh-pages")
end

task default: :test
task :default => :test
2 changes: 1 addition & 1 deletion test/integration/wolverine_integration_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require_relative '../test_helper'
require File.join(File.expand_path('../../test_helper', __FILE__))

class WolverineIntegrationTest < MiniTest::Unit::TestCase

Expand Down
2 changes: 1 addition & 1 deletion test/wolverine/configuration_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require_relative '../test_helper'
require File.join(File.expand_path('../../test_helper', __FILE__))
require 'pathname'

module Rails
Expand Down
4 changes: 2 additions & 2 deletions test/wolverine/path_component_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require_relative '../test_helper'
require File.join(File.expand_path('../../test_helper', __FILE__))

module Wolverine
class PathComponentTest < MiniTest::Unit::TestCase
Expand Down Expand Up @@ -27,4 +27,4 @@ def test_script_caching
end

end
end
end
4 changes: 2 additions & 2 deletions test/wolverine/script_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require_relative '../test_helper'
require File.join(File.expand_path('../../test_helper', __FILE__))
require 'digest/sha1'

module Wolverine
Expand All @@ -7,7 +7,7 @@ class ScriptTest < MiniTest::Unit::TestCase
DIGEST = Digest::SHA1.hexdigest(CONTENT)

def setup
Wolverine::Script.any_instance.stubs(load_lua: CONTENT)
Wolverine::Script.any_instance.stubs(:load_lua => CONTENT)
end

def script
Expand Down
2 changes: 1 addition & 1 deletion test/wolverine_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require_relative 'test_helper'
require File.join(File.expand_path('../test_helper', __FILE__))

class WolverineTest < MiniTest::Unit::TestCase

Expand Down

0 comments on commit a14f000

Please sign in to comment.