Skip to content

Commit 9bbf939

Browse files
committed
fix(test): test_payload_name_on_eager_load
1 parent 054a625 commit 9bbf939

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
require "support/copy_cat"
2+
3+
# We override this test since in our codebase, there is a SCHEMA call
4+
# made with `SHOW max_identifier_length`.
5+
# TODO: We should however inspect why that is.
6+
#
7+
# From: notification.first
8+
# To: notification.last
9+
CopyCat.copy_methods(self, self, :test_payload_name_on_eager_load) do
10+
def on_send(node)
11+
return super unless node in [:send, [:lvar, :notification], :first]
12+
replace(node.loc.expression, "notification.last")
13+
end
14+
end

0 commit comments

Comments
 (0)