summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2015-03-24 18:28:13 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2015-03-24 18:28:13 -0700
commit9a15207dd5dc18142aaa9077ddfcd3b67e176f29 (patch)
treef17b28dc0835b38d8661b5e0bf2cec54731deea1 /spec
parent9ee5ac5e4b0771fe33974b23da098d2173e7d369 (diff)
downloadffi-yajl-9a15207dd5dc18142aaa9077ddfcd3b67e176f29.tar.gz
Filter this test out of windows.
For some reason on Ruby 2.0.0 on windows this test spins forever. Possibly a ruby-on-windows-bug. Might be a real issue, but without it being customer affecting don't have time for that.
Diffstat (limited to 'spec')
-rw-r--r--spec/ffi_yajl/parser_spec.rb2
-rw-r--r--spec/spec_helper.rb1
2 files changed, 2 insertions, 1 deletions
diff --git a/spec/ffi_yajl/parser_spec.rb b/spec/ffi_yajl/parser_spec.rb
index 0afae3f..6ef587f 100644
--- a/spec/ffi_yajl/parser_spec.rb
+++ b/spec/ffi_yajl/parser_spec.rb
@@ -453,7 +453,7 @@ describe "FFI_Yajl::Parser" do
end
end
- context "when parsing big floats", :ruby_gte_193 => true do
+ context "when parsing big floats", :ruby_gte_193 => true, :unix_only => true do
let(:json) { '[0.' + '1' * 2**23 + ']' }
it "parses" do
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 50c3454..71a397b 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -3,6 +3,7 @@ $: << File.expand_path(File.join(File.dirname( __FILE__ ), "../lib"))
require 'ffi_yajl'
RSpec.configure do |c|
+ c.filter_run_excluding :unix_only => true unless RUBY_PLATFORM !~ /mswin|mingw|windows/
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/