Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Stop recursion

  • Loading branch information...
commit 0239c57c552e4fa36e2caf80d138bad9e3bcf30a 1 parent 95c1c8a
@arsduo authored
Showing with 18 additions and 17 deletions.
  1. +18 −17 spec/spec_helper.rb
View
35 spec/spec_helper.rb
@@ -1,19 +1,21 @@
-# In Ruby 1.9.2 versions before patchlevel 290, the default Psych
-# parser has an issue with YAML merge keys, which
-# fixtures/mock_facebook_responses.yml relies heavily on.
-#
-# Anyone using an earlier version will see missing mock response
-# errors when running the test suite similar to this:
-#
-# RuntimeError:
-# Missing a mock response for graph_api: /me/videos: source=[FILE]: post: with_token
-# API PATH: /me/videos?source=[FILE]&format=json&access_token=*
-#
-# For now, it seems the best fix is to just downgrade to the old syck YAML parser
-# for these troubled versions.
-#
-# See https://github.com/tenderlove/psych/issues/8 for more details
-YAML::ENGINE.yamler = 'syck' if RUBY_VERSION == '1.9.2' && RUBY_PATCHLEVEL < 290
+if RUBY_VERSION == '1.9.2' && RUBY_PATCHLEVEL < 290 && RUBY_ENGINE != "macruby"
+ # In Ruby 1.9.2 versions before patchlevel 290, the default Psych
+ # parser has an issue with YAML merge keys, which
+ # fixtures/mock_facebook_responses.yml relies heavily on.
+ #
+ # Anyone using an earlier version will see missing mock response
+ # errors when running the test suite similar to this:
+ #
+ # RuntimeError:
+ # Missing a mock response for graph_api: /me/videos: source=[FILE]: post: with_token
+ # API PATH: /me/videos?source=[FILE]&format=json&access_token=*
+ #
+ # For now, it seems the best fix is to just downgrade to the old syck YAML parser
+ # for these troubled versions.
+ #
+ # See https://github.com/tenderlove/psych/issues/8 for more details
+ YAML::ENGINE.yamler = 'syck'
+end
# load the library
require 'koala'
@@ -22,7 +24,6 @@
# we have to first ensure consistent to_json behavior across versions
# otherwise mock_http_service may parse the YAML improperly
require 'support/ordered_hash'
-require 'support/json_testing_fix'
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
# set up our testing environment
Please sign in to comment.
Something went wrong with that request. Please try again.