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 a359fc1 commit b133526Copy full SHA for b133526
lib/iruby/session.rb
@@ -10,6 +10,7 @@ class Session
10
def initialize(config, adapter_name=nil)
11
@config = config
12
@adapter = create_session_adapter(config, adapter_name)
13
+ @last_recvd_msg = nil
14
15
setup
16
setup_sockets
test/helper.rb
@@ -37,10 +37,14 @@ def self.test_config_filename
37
@__config_path.to_s
38
end
39
40
- def teardown
+ def self.restore_kernel
41
IRuby::Kernel.instance = @__original_kernel_instance
42
43
44
+ def teardown
45
+ self.class.restore_kernel
46
+ end
47
+
48
def with_session_adapter(session_adapter_name)
49
IRuby::Kernel.new(self.class.test_config_filename, session_adapter_name)
50
$stdout = STDOUT
0 commit comments