summaryrefslogtreecommitdiff
path: root/spec/ruby/core/fiber/current_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/fiber/current_spec.rb')
-rw-r--r--spec/ruby/core/fiber/current_spec.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/spec/ruby/core/fiber/current_spec.rb b/spec/ruby/core/fiber/current_spec.rb
index b93df77a89..cc5c9117b6 100644
--- a/spec/ruby/core/fiber/current_spec.rb
+++ b/spec/ruby/core/fiber/current_spec.rb
@@ -3,20 +3,20 @@ require_relative '../../spec_helper'
describe "Fiber.current" do
it "returns the root Fiber when called outside of a Fiber" do
root = Fiber.current
- root.should be_an_instance_of(Fiber)
+ root.should.instance_of?(Fiber)
# We can always transfer to the root Fiber; it will never die
5.times do
- root.transfer.should be_nil
- root.alive?.should be_true
+ root.transfer.should == nil
+ root.alive?.should == true
end
end
it "returns the current Fiber when called from a Fiber" do
fiber = Fiber.new do
this = Fiber.current
- this.should be_an_instance_of(Fiber)
+ this.should.instance_of?(Fiber)
this.should == fiber
- this.alive?.should be_true
+ this.alive?.should == true
end
fiber.resume
end
@@ -26,9 +26,9 @@ describe "Fiber.current" do
fiber = Fiber.new do
states << :fiber
this = Fiber.current
- this.should be_an_instance_of(Fiber)
+ this.should.instance_of?(Fiber)
this.should == fiber
- this.alive?.should be_true
+ this.alive?.should == true
end
fiber2 = Fiber.new do