Skip to content

Commit 867505e

Browse files
committed
✅🚧 Mark 2 ConnectionState tests as pending for TruffleRuby
1 parent 45b745e commit 867505e

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

test/net/imap/test_connection_state.rb

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,25 @@ class ConnectionStateTest < Net::IMAP::TestCase
2525
end
2626

2727
test "#deconstruct" do
28-
assert_equal [:not_authenticated], NotAuthenticated[].deconstruct
29-
assert_equal [:authenticated], Authenticated[] .deconstruct
30-
assert_equal [:selected], Selected[] .deconstruct
31-
assert_equal [:logout], Logout[] .deconstruct
28+
pend_if_truffleruby "TruffleRuby bug overriding ::Data methods" do
29+
assert_equal [:not_authenticated], NotAuthenticated[].deconstruct
30+
assert_equal [:authenticated], Authenticated[] .deconstruct
31+
assert_equal [:selected], Selected[] .deconstruct
32+
assert_equal [:logout], Logout[] .deconstruct
33+
end
3234
end
3335

3436
test "#deconstruct_keys" do
35-
assert_equal({symbol: :not_authenticated}, NotAuthenticated[].deconstruct_keys([:symbol]))
36-
assert_equal({symbol: :authenticated}, Authenticated[] .deconstruct_keys([:symbol]))
37-
assert_equal({symbol: :selected}, Selected[] .deconstruct_keys([:symbol]))
38-
assert_equal({symbol: :logout}, Logout[] .deconstruct_keys([:symbol]))
39-
assert_equal({name: "not_authenticated"}, NotAuthenticated[].deconstruct_keys([:name]))
40-
assert_equal({name: "authenticated"}, Authenticated[] .deconstruct_keys([:name]))
41-
assert_equal({name: "selected"}, Selected[] .deconstruct_keys([:name]))
42-
assert_equal({name: "logout"}, Logout[] .deconstruct_keys([:name]))
37+
pend_if_truffleruby "TruffleRuby bug overriding ::Data methods" do
38+
assert_equal({symbol: :not_authenticated}, NotAuthenticated[].deconstruct_keys([:symbol]))
39+
assert_equal({symbol: :authenticated}, Authenticated[] .deconstruct_keys([:symbol]))
40+
assert_equal({symbol: :selected}, Selected[] .deconstruct_keys([:symbol]))
41+
assert_equal({symbol: :logout}, Logout[] .deconstruct_keys([:symbol]))
42+
assert_equal({name: "not_authenticated"}, NotAuthenticated[].deconstruct_keys([:name]))
43+
assert_equal({name: "authenticated"}, Authenticated[] .deconstruct_keys([:name]))
44+
assert_equal({name: "selected"}, Selected[] .deconstruct_keys([:name]))
45+
assert_equal({name: "logout"}, Logout[] .deconstruct_keys([:name]))
46+
end
4347
end
4448

4549
test "#not_authenticated?" do

0 commit comments

Comments
 (0)