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"