Skip to content

Commit b133526

Browse files
committed
Prevent warning messages
1 parent a359fc1 commit b133526

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

lib/iruby/session.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ class Session
1010
def initialize(config, adapter_name=nil)
1111
@config = config
1212
@adapter = create_session_adapter(config, adapter_name)
13+
@last_recvd_msg = nil
1314

1415
setup
1516
setup_sockets

test/helper.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,14 @@ def self.test_config_filename
3737
@__config_path.to_s
3838
end
3939

40-
def teardown
40+
def self.restore_kernel
4141
IRuby::Kernel.instance = @__original_kernel_instance
4242
end
4343

44+
def teardown
45+
self.class.restore_kernel
46+
end
47+
4448
def with_session_adapter(session_adapter_name)
4549
IRuby::Kernel.new(self.class.test_config_filename, session_adapter_name)
4650
$stdout = STDOUT

0 commit comments

Comments
 (0)