diff options
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' |