From 3ebb3b87f9461faac46a647ba61a490518ebf9ad Mon Sep 17 00:00:00 2001 From: Daniel Berger Date: Fri, 29 Mar 2024 05:27:50 -0400 Subject: [PATCH] Return unless gem installed. --- spec/multi_json/adapters/gson_spec.rb | 2 ++ spec/multi_json/adapters/jr_jackson_spec.rb | 2 ++ spec/multi_json/adapters/oj_spec.rb | 2 ++ spec/multi_json/adapters/ok_json_spec.rb | 2 ++ spec/multi_json/adapters/yajl_spec.rb | 2 ++ 5 files changed, 10 insertions(+) diff --git a/spec/multi_json/adapters/gson_spec.rb b/spec/multi_json/adapters/gson_spec.rb index aef59ce..de9df97 100644 --- a/spec/multi_json/adapters/gson_spec.rb +++ b/spec/multi_json/adapters/gson_spec.rb @@ -1,4 +1,6 @@ require "spec_helper" +return unless RSpec.configuration.gson? + require "shared/adapter" require "multi_json/adapters/gson" diff --git a/spec/multi_json/adapters/jr_jackson_spec.rb b/spec/multi_json/adapters/jr_jackson_spec.rb index e51d8f2..729bbe2 100644 --- a/spec/multi_json/adapters/jr_jackson_spec.rb +++ b/spec/multi_json/adapters/jr_jackson_spec.rb @@ -1,4 +1,6 @@ require "spec_helper" +return unless RSpec.configuration.jrjackson? + require "shared/adapter" require "multi_json/adapters/jr_jackson" diff --git a/spec/multi_json/adapters/oj_spec.rb b/spec/multi_json/adapters/oj_spec.rb index 3f08a8a..4480b84 100644 --- a/spec/multi_json/adapters/oj_spec.rb +++ b/spec/multi_json/adapters/oj_spec.rb @@ -1,4 +1,6 @@ require "spec_helper" +return unless RSpec.configuration.oj? + require "shared/adapter" require "multi_json/adapters/oj" diff --git a/spec/multi_json/adapters/ok_json_spec.rb b/spec/multi_json/adapters/ok_json_spec.rb index 94bc85a..6ad2dfa 100644 --- a/spec/multi_json/adapters/ok_json_spec.rb +++ b/spec/multi_json/adapters/ok_json_spec.rb @@ -1,4 +1,6 @@ require "spec_helper" +return unless RSpec.configuration.ok_json? + require "shared/adapter" require "multi_json/adapters/ok_json" diff --git a/spec/multi_json/adapters/yajl_spec.rb b/spec/multi_json/adapters/yajl_spec.rb index 0928097..5b479b7 100644 --- a/spec/multi_json/adapters/yajl_spec.rb +++ b/spec/multi_json/adapters/yajl_spec.rb @@ -1,4 +1,6 @@ require "spec_helper" +return unless RSpec.configuration.yajl? + require "shared/adapter" require "multi_json/adapters/yajl"