Skip to content

Commit

Permalink
Alter new upstream test for Fiber storage
Browse files Browse the repository at this point in the history
Run the test inside a new Fiber, we do not want to clutter the Fiber
running the specs with additional keys.
  • Loading branch information
herwinw authored and eregon committed Jan 7, 2025
1 parent 5f30287 commit cc693a3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/fiber/storage_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,7 @@
it "can use keys as strings" do
key = Object.new
def key.to_str; "Foo"; end
Fiber[key] = 42
Fiber["Foo"].should == 42
Fiber.new { Fiber[key] = 42; Fiber["Foo"] }.resume.should == 42
end
end

Expand Down

0 comments on commit cc693a3

Please sign in to comment.