Skip to content
Browse files

Fix @engine ivar warning

warning: instance variable @engine not initialized
  • Loading branch information...
1 parent c607b71 commit 3b978a8995721a8dffedc3b75a7f49e5494ec553 @josh josh committed Apr 14, 2011
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'

0 comments on commit 3b978a8

Please sign in to comment.
Something went wrong with that request. Please try again.