Navigation Menu

Skip to content

Commit

Permalink
Ruby 1.8 support was dropped
Browse files Browse the repository at this point in the history
  • Loading branch information
fabn committed Dec 30, 2015
1 parent bc1c2aa commit 3cead1f
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 28 deletions.
9 changes: 0 additions & 9 deletions test/test_regresions.rb
@@ -1,15 +1,6 @@
# encoding: utf-8
require "test/unit"

# fix for require_relative in < 1.9
unless Kernel.respond_to?(:require_relative)
module Kernel
def require_relative(path)
require File.join(File.dirname(caller[0]), path.to_str)
end
end
end

require_relative "../lib/rqrcode"
class RegresionTests < Test::Unit::TestCase

Expand Down
10 changes: 0 additions & 10 deletions test/test_rqrcode.rb
@@ -1,15 +1,5 @@
# encoding: utf-8
require "test/unit"

# fix for require_relative in < 1.9
unless Kernel.respond_to?(:require_relative)
module Kernel
def require_relative(path)
require File.join(File.dirname(caller[0]), path.to_str)
end
end
end

require_relative "../lib/rqrcode"

class QRCodeTest < Test::Unit::TestCase
Expand Down
9 changes: 0 additions & 9 deletions test/test_rqrcode_export.rb
Expand Up @@ -5,15 +5,6 @@
require 'rqrcode/export/svg'
require 'rqrcode/export/html'

# fix for require_relative in < 1.9
unless Kernel.respond_to?(:require_relative)
module Kernel
def require_relative(path)
require File.join(File.dirname(caller[0]), path.to_str)
end
end
end

require_relative "../lib/rqrcode"

describe :QRCodeExportTest do
Expand Down

0 comments on commit 3cead1f

Please sign in to comment.