Skip to content

Commit 5d61773

Browse files
committed
ConnectionStub identifiers are methods, not ivars
1 parent d573fb1 commit 5d61773

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

actioncable/lib/action_cable/channel/test_case.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def transmit(cable_message)
6565

6666
def connection_identifier
6767
unless defined? @connection_identifier
68-
@connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
68+
@connection_identifier = connection_gid identifiers.filter_map { |id| send(id.to_sym) if id }
6969
end
7070

7171
@connection_identifier

0 commit comments

Comments
 (0)