mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
Fix specs for JRuby
This commit is contained in:
parent
990d3e8062
commit
83b01913d1
1 changed files with 18 additions and 24 deletions
|
@ -9,30 +9,28 @@ describe Pry::WrappedModule do
|
||||||
end
|
end
|
||||||
|
|
||||||
describe "candidates" do
|
describe "candidates" do
|
||||||
before do
|
class Host
|
||||||
class Host
|
%w(spec/fixtures/candidate_helper1.rb
|
||||||
%w(spec/fixtures/candidate_helper1.rb
|
spec/fixtures/candidate_helper2.rb).each do |file|
|
||||||
spec/fixtures/candidate_helper2.rb).each do |file|
|
binding.eval File.read(file), file, 1
|
||||||
binding.eval File.read(file), file, 1
|
end
|
||||||
end
|
|
||||||
|
|
||||||
# rank 2
|
# rank 2
|
||||||
class CandidateTest
|
class CandidateTest
|
||||||
def test6
|
def test6
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class PitifullyBlank
|
class PitifullyBlank
|
||||||
DEFAULT_TEST = CandidateTest
|
DEFAULT_TEST = CandidateTest
|
||||||
end
|
end
|
||||||
|
|
||||||
FOREVER_ALONE_LINE = __LINE__ + 1
|
FOREVER_ALONE_LINE = __LINE__ + 1
|
||||||
class ForeverAlone
|
class ForeverAlone
|
||||||
class DoublyNested
|
class DoublyNested
|
||||||
# nested docs
|
# nested docs
|
||||||
class TriplyNested
|
class TriplyNested
|
||||||
def nested_method
|
def nested_method
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -134,10 +132,6 @@ describe Pry::WrappedModule do
|
||||||
Pry::WrappedModule(Host::ForeverAlone::DoublyNested::TriplyNested).doc.should =~ /nested docs/
|
Pry::WrappedModule(Host::ForeverAlone::DoublyNested::TriplyNested).doc.should =~ /nested docs/
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
after do
|
|
||||||
Object.remove_const(:Host)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
describe ".method_prefix" do
|
describe ".method_prefix" do
|
||||||
|
|
Loading…
Reference in a new issue