Fix broken specs.

This commit is contained in:
Guo Xiang Tan 2017-07-20 13:17:45 +09:00
parent 30ec87fcb5
commit ac9c8ccf3b
3 changed files with 3 additions and 3 deletions

View File

@ -41,7 +41,7 @@ JS
end
def self.reset_context
@ctx.dispose
@ctx&.dispose
@ctx = nil
end

View File

@ -161,7 +161,7 @@ module JsLocaleHelper
end
def self.reset_context
@ctx.dispose
@ctx&.dispose
@ctx = nil
end

View File

@ -123,7 +123,7 @@ module PrettyText
def self.reset_context
@ctx_init.synchronize do
@ctx.dispose
@ctx&.dispose
@ctx = nil
end
end