summaryrefslogtreecommitdiff
path: root/spec/ruby/library/open3/popen3_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/open3/popen3_spec.rb')
-rw-r--r--spec/ruby/library/open3/popen3_spec.rb12
1 files changed, 5 insertions, 7 deletions
diff --git a/spec/ruby/library/open3/popen3_spec.rb b/spec/ruby/library/open3/popen3_spec.rb
index 9733ab15cd..3651bd516c 100644
--- a/spec/ruby/library/open3/popen3_spec.rb
+++ b/spec/ruby/library/open3/popen3_spec.rb
@@ -1,14 +1,14 @@
-require File.expand_path('../../../spec_helper', __FILE__)
+require_relative '../../spec_helper'
require 'open3'
describe "Open3.popen3" do
it "returns in, out, err and a thread waiting the process" do
stdin, out, err, waiter = Open3.popen3(ruby_cmd("print :foo"))
begin
- stdin.should be_kind_of IO
- out.should be_kind_of IO
- err.should be_kind_of IO
- waiter.should be_kind_of Thread
+ stdin.should.is_a? IO
+ out.should.is_a? IO
+ err.should.is_a? IO
+ waiter.should.is_a? Thread
out.read.should == "foo"
ensure
@@ -38,6 +38,4 @@ describe "Open3.popen3" do
out.read.should == "foo"
end
end
-
- it "needs to be reviewed for spec completeness"
end