We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 674e2ca commit ab49e8aCopy full SHA for ab49e8a
spec/ruby/core/set/pretty_print_cycle_spec.rb
@@ -3,7 +3,12 @@
3
describe "Set#pretty_print_cycle" do
4
it "passes the 'pretty print' representation of a self-referencing Set to the pretty print writer" do
5
pp = mock("PrettyPrint")
6
- pp.should_receive(:text).with("#<Set: {...}>")
+ ruby_version_is(""..."3.5") do
7
+ pp.should_receive(:text).with("#<Set: {...}>")
8
+ end
9
+ ruby_version_is("3.5") do
10
+ pp.should_receive(:text).with("Set[...]")
11
12
Set[1, 2, 3].pretty_print_cycle(pp)
13
end
14
0 commit comments