diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2013-12-16 16:20:59 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2013-12-16 16:20:59 -0800 |
commit | 4f5f4abcaae96bb5cc64c04ee37502931d026766 (patch) | |
tree | 54c1541cc5effab823116b56316301cfbedcf65e /spec | |
parent | 960945b1316ec7238429b15a522ab7e722396996 (diff) | |
download | ffi-yajl-4f5f4abcaae96bb5cc64c04ee37502931d026766.tar.gz |
exclude test on ruby 1.8
Diffstat (limited to 'spec')
-rw-r--r-- | spec/ffi_yajl/json_gem_spec.rb | 2 | ||||
-rw-r--r-- | spec/spec_helper.rb | 14 |
2 files changed, 9 insertions, 7 deletions
diff --git a/spec/ffi_yajl/json_gem_spec.rb b/spec/ffi_yajl/json_gem_spec.rb index 33d3063..f53ac93 100644 --- a/spec/ffi_yajl/json_gem_spec.rb +++ b/spec/ffi_yajl/json_gem_spec.rb @@ -146,7 +146,7 @@ describe "JSON Gem Compat API" do expect(dt.to_json).to eq( %Q{"#{dt.to_s}"} ) end - it "and DateTime's are really ISO8601s" do + it "and DateTime's are really ISO8601s", :ruby_gte_19 => true do dt = DateTime.new expect(dt.to_json).to eq( %Q{"#{dt.iso8601}"} ) end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 05effa2..9e8a10a 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -2,14 +2,16 @@ $: << File.expand_path(File.join(File.dirname( __FILE__ ), "../lib")) require 'ffi_yajl' -RSpec.configure do |config| - config.treat_symbols_as_metadata_keys_with_true_values = true - config.run_all_when_everything_filtered = true - config.filter_run :focus +RSpec.configure do |c| + c.treat_symbols_as_metadata_keys_with_true_values = true + c.run_all_when_everything_filtered = true + c.filter_run :focus - config.order = 'random' + c.order = 'random' - config.expect_with :rspec do |c| + c.expect_with :rspec do |c| c.syntax = :expect end + + c.filter_run_excluding :ruby_gte_19 => true if RUBY_VERSION.to_f >= 1.9 end |