diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2014-06-14 12:44:13 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2014-06-14 12:44:13 -0700 |
commit | e0c7dcbe986700cccd42d954a29298b5dc34b28e (patch) | |
tree | a0aae67692aea3e6e46e4332692801a2353c0fac /spec | |
parent | 932be4351bed43385ec28b5fee6e0b874afa086e (diff) | |
download | ffi-yajl-e0c7dcbe986700cccd42d954a29298b5dc34b28e.tar.gz |
don't do the long tests on ruby <= 1.9.2
seems to lock up rspec completely
Diffstat (limited to 'spec')
-rw-r--r-- | spec/ffi_yajl/parser_spec.rb | 4 | ||||
-rw-r--r-- | spec/spec_helper.rb | 1 |
2 files changed, 3 insertions, 2 deletions
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' |