Sha256: cca48275909928e5dd679d6f616e7ffbdeff449d6906aecbe87ac371309b34b8

Contents?: true

Size: 1.55 KB

Versions: 83

Compression:

Stored size: 1.55 KB

Contents

# XXX Dont have 'fiber'
#require File.dirname(File.join(__rhoGetCurrentDir(), __FILE__)) + '/../../spec_helper'
#
#ruby_version_is "1.9" do
#  require 'fiber'
#
#  describe "Fiber#alive?" do
#
#    # 1.9.1 returns 0 for true
#    ruby_bug "#1547", "1.9.2" do
#      it "returns true for a Fiber that hasn't had #resume called" do
#        fiber = Fiber.new { true }
#        fiber.alive?.should be_true
#      end
#
#      # FIXME: Better description?
#      it "returns true for a Fiber that's yielded to the caller" do
#        fiber = Fiber.new { Fiber.yield }
#        fiber.resume
#        fiber.alive?.should be_true
#      end
#
#      it "returns true when called from its Fiber" do
#        fiber = Fiber.new { fiber.alive?.should be_true }
#        fiber.resume
#      end
#    end
#
#    it "doesn't invoke the block associated with the Fiber" do
#      offthehook = mock('do not call')
#      offthehook.should_not_receive(:ring)
#      fiber = Fiber.new { offthehook.ring }
#      fiber.alive?
#    end
#
#    it "returns false for a Fiber that's dead" do
#      fiber = Fiber.new { true }
#      fiber.resume
#      lambda { fiber.resume }.should raise_error(FiberError)
#      fiber.alive?.should be_false
#    end
#
#    it "always returns false for a dead Fiber" do
#      fiber = Fiber.new { true }
#      fiber.resume
#      lambda { fiber.resume }.should raise_error(FiberError)
#      fiber.alive?.should be_false
#      lambda { fiber.resume }.should raise_error(FiberError)
#      fiber.alive?.should be_false
#      fiber.alive?.should be_false
#    end
#
#  end
#end

Version data entries

83 entries across 83 versions & 1 rubygems

Version Path
rhodes-3.1.1 spec/framework_spec/app/spec/core/fiber/alive_spec.rb
rhodes-3.1.1.beta spec/framework_spec/app/spec/core/fiber/alive_spec.rb
rhodes-3.1.0 spec/framework_spec/app/spec/core/fiber/alive_spec.rb
rhodes-3.1.0.beta.5 spec/framework_spec/app/spec/core/fiber/alive_spec.rb
rhodes-3.1.0.beta.4 spec/framework_spec/app/spec/core/fiber/alive_spec.rb
rhodes-3.1.0.beta.3 spec/framework_spec/app/spec/core/fiber/alive_spec.rb
rhodes-3.1.0.beta.2 spec/framework_spec/app/spec/core/fiber/alive_spec.rb
rhodes-3.1.0.beta.1 spec/framework_spec/app/spec/core/fiber/alive_spec.rb
rhodes-3.0.2 spec/framework_spec/app/spec/core/fiber/alive_spec.rb
rhodes-3.0.2.beta.1 spec/framework_spec/app/spec/core/fiber/alive_spec.rb
rhodes-3.0.1 spec/framework_spec/app/spec/core/fiber/alive_spec.rb
rhodes-3.0.1.beta.8 spec/framework_spec/app/spec/core/fiber/alive_spec.rb
rhodes-3.0.1.beta.7 spec/framework_spec/app/spec/core/fiber/alive_spec.rb
rhodes-3.0.1.beta.6 spec/framework_spec/app/spec/core/fiber/alive_spec.rb
rhodes-3.0.1.beta.5 spec/framework_spec/app/spec/core/fiber/alive_spec.rb
rhodes-3.0.1.beta.4 spec/framework_spec/app/spec/core/fiber/alive_spec.rb
rhodes-3.0.1.beta.3 spec/framework_spec/app/spec/core/fiber/alive_spec.rb
rhodes-3.0.1.beta.2 spec/framework_spec/app/spec/core/fiber/alive_spec.rb
rhodes-3.0.0 spec/framework_spec/app/spec/core/fiber/alive_spec.rb
rhodes-3.0.0.beta.7 spec/framework_spec/app/spec/core/fiber/alive_spec.rb