pry 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/pry/version.rb +1 -1
- data/test/test_pry.rb +8 -6
- metadata +1 -1
data/lib/pry/version.rb
CHANGED
data/test/test_pry.rb
CHANGED
@@ -7,10 +7,12 @@ puts "--"
|
|
7
7
|
|
8
8
|
describe Pry do
|
9
9
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
10
|
+
if RUBY_PLATFORM !~ /mingw/ && RUBY_PLATFORM !~ /mswin/
|
11
|
+
describe 'warning emissions' do
|
12
|
+
it 'should emit no warnings' do
|
13
|
+
Open4.popen4 'ruby -I lib -rubygems -r"pry" -W -e "exit"' do |pid, stdin, stdout, stderr|
|
14
|
+
stderr.read.empty?.should == true
|
15
|
+
end
|
14
16
|
end
|
15
17
|
end
|
16
18
|
end
|
@@ -62,12 +64,12 @@ describe Pry do
|
|
62
64
|
end
|
63
65
|
|
64
66
|
it 'should make self evaluate to the receiver of the rep session' do
|
65
|
-
o =
|
67
|
+
o = :john
|
66
68
|
str_output = StringIO.new
|
67
69
|
|
68
70
|
pry_tester = Pry.new(:input => InputTester.new("self"), :output => str_output)
|
69
71
|
pry_tester.rep(o)
|
70
|
-
str_output.string.should =~
|
72
|
+
str_output.string.should =~ /:john/
|
71
73
|
end
|
72
74
|
|
73
75
|
it 'should work with multi-line input' do
|