pry 0.9.0 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/pry/version.rb +1 -1
  2. data/test/test_pry.rb +8 -6
  3. metadata +1 -1
@@ -1,3 +1,3 @@
1
1
  class Pry
2
- VERSION = "0.9.0"
2
+ VERSION = "0.9.1"
3
3
  end
@@ -7,10 +7,12 @@ puts "--"
7
7
 
8
8
  describe Pry do
9
9
 
10
- describe 'warning emissions' do
11
- it 'should emit no warnings' do
12
- Open4.popen4 'ruby -I lib -rubygems -r"pry" -W -e "exit"' do |pid, stdin, stdout, stderr|
13
- stderr.read.empty?.should == true
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 = Object.new
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 =~ /#{o.to_s}/
72
+ str_output.string.should =~ /:john/
71
73
  end
72
74
 
73
75
  it 'should work with multi-line input' do
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: pry
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.9.0
5
+ version: 0.9.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - John Mair (banisterfiend)