summaryrefslogtreecommitdiff
path: root/spec/ruby/core/fiber/storage_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/fiber/storage_spec.rb')
-rw-r--r--spec/ruby/core/fiber/storage_spec.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/spec/ruby/core/fiber/storage_spec.rb b/spec/ruby/core/fiber/storage_spec.rb
index 4adfd30d2b..c0958d98ee 100644
--- a/spec/ruby/core/fiber/storage_spec.rb
+++ b/spec/ruby/core/fiber/storage_spec.rb
@@ -22,14 +22,6 @@ describe "Fiber.new(storage:)" do
fiber.resume.should == {life: 42}
end
- it "creates a fiber with a reference to the storage of the parent fiber" do
- fiber = Fiber.new(storage: {life: 42}) do
- Fiber.new(storage: false) { Fiber[:life] = 43 }.resume
- Fiber.current.storage
- end
- fiber.resume.should == {life: 43}
- end
-
it "cannot create a fiber with non-hash storage" do
-> { Fiber.new(storage: 42) {} }.should raise_error(TypeError)
end