From e0c7dcbe986700cccd42d954a29298b5dc34b28e Mon Sep 17 00:00:00 2001 From: Lamont Granquist Date: Sat, 14 Jun 2014 12:44:13 -0700 Subject: don't do the long tests on ruby <= 1.9.2 seems to lock up rspec completely --- spec/ffi_yajl/parser_spec.rb | 4 ++-- spec/spec_helper.rb | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'spec') diff --git a/spec/ffi_yajl/parser_spec.rb b/spec/ffi_yajl/parser_spec.rb index 918bdc0..7172160 100644 --- a/spec/ffi_yajl/parser_spec.rb +++ b/spec/ffi_yajl/parser_spec.rb @@ -302,7 +302,7 @@ describe "FFI_Yajl::Parser" do end end - context "when parsing big floats" do + context "when parsing big floats", :ruby_gte_193 => true do let(:json) { '[0.' + '1' * 2**23 + ']' } it "parses" do @@ -310,7 +310,7 @@ describe "FFI_Yajl::Parser" do end end - context "when parsing long hash keys with symbolize_keys option" do + context "when parsing long hash keys with symbolize_keys option", :ruby_gte_193 => true do let(:json) { '{"' + 'a' * 2**23 + '": 0}' } let(:options) { { :symbolize_keys => true } } diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 54d8b97..50c3454 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -4,6 +4,7 @@ require 'ffi_yajl' RSpec.configure do |c| c.filter_run_excluding :ruby_gte_19 => true unless RUBY_VERSION.to_f >= 1.9 + c.filter_run_excluding :ruby_gte_193 => true unless RUBY_VERSION.to_f >= 2.0 || RUBY_VERSION =~ /^1\.9\.3/ c.order = 'random' -- cgit v1.2.1