Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix @engine ivar warning

warning: instance variable @engine not initialized
  • Loading branch information...
commit 3b978a8995721a8dffedc3b75a7f49e5494ec553 1 parent c607b71
@josh josh authored
Showing with 5 additions and 1 deletion.
  1. +2 −0  lib/multi_json.rb
  2. +3 −1 spec/spec_helper.rb
View
2  lib/multi_json.rb
@@ -2,6 +2,8 @@ module MultiJson
class DecodeError < StandardError; end
module_function
+ @engine = nil
+
# Get the current engine class.
def engine
return @engine if @engine
View
4 spec/spec_helper.rb
@@ -4,6 +4,8 @@
puts "although not required, it's recommended that you use bundler during development"
end
-require 'multi_json'
require 'rspec'
require 'rspec/autorun'
+
+$VERBOSE = true
+require 'multi_json'
Please sign in to comment.
Something went wrong with that request. Please try again.