Remove parent namespace from Readline test classes
The namespace "Readline" doesn't exist when running tests if readline.so doesn't exist and Reline exists. So test classes shouldn't be at nested namespaces under "Readline".
This commit is contained in:
parent
ea3e7e2685
commit
9858d74a12
@ -2,7 +2,7 @@
|
|||||||
require_relative "helper"
|
require_relative "helper"
|
||||||
require "test/unit"
|
require "test/unit"
|
||||||
|
|
||||||
module Readline::BasetestHistory
|
module BasetestReadlineHistory
|
||||||
def setup
|
def setup
|
||||||
Readline::HISTORY.clear
|
Readline::HISTORY.clear
|
||||||
end
|
end
|
||||||
@ -252,8 +252,8 @@ module Readline::BasetestHistory
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class Readline::TestHistory < Test::Unit::TestCase
|
class TestReadlineHistory < Test::Unit::TestCase
|
||||||
include Readline::BasetestHistory
|
include BasetestReadlineHistory
|
||||||
|
|
||||||
def setup
|
def setup
|
||||||
use_ext_readline
|
use_ext_readline
|
||||||
@ -268,8 +268,8 @@ end if defined?(::ReadlineSo) && defined?(::ReadlineSo::HISTORY) &&
|
|||||||
end
|
end
|
||||||
)
|
)
|
||||||
|
|
||||||
class Reline::TestHistory < Test::Unit::TestCase
|
class TestRelineAsReadlineHistory < Test::Unit::TestCase
|
||||||
include Readline::BasetestHistory
|
include BasetestReadlineHistory
|
||||||
|
|
||||||
def setup
|
def setup
|
||||||
use_lib_reline
|
use_lib_reline
|
||||||
|
Loading…
x
Reference in New Issue
Block a user