summaryrefslogtreecommitdiff
path: root/spec/ruby/library/expect/expect_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/expect/expect_spec.rb')
-rw-r--r--spec/ruby/library/expect/expect_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/library/expect/expect_spec.rb b/spec/ruby/library/expect/expect_spec.rb
index 76ea3d5451..ba705c5535 100644
--- a/spec/ruby/library/expect/expect_spec.rb
+++ b/spec/ruby/library/expect/expect_spec.rb
@@ -40,14 +40,14 @@ platform_is_not :windows do
-> {
@read.expect("hello")
- }.should raise_error(IOError)
+ }.should.raise(IOError)
end
it "returns nil if eof is hit" do
@write << "pro"
@write.close
- @read.expect("prompt").should be_nil
+ @read.expect("prompt").should == nil
end
it "yields the result if a block is given" do