summaryrefslogtreecommitdiff
path: root/test/json/test_json_fixtures.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/json/test_json_fixtures.rb')
-rw-r--r--test/json/test_json_fixtures.rb8
1 files changed, 2 insertions, 6 deletions
diff --git a/test/json/test_json_fixtures.rb b/test/json/test_json_fixtures.rb
index e192706d6b6..59bcb126377 100644
--- a/test/json/test_json_fixtures.rb
+++ b/test/json/test_json_fixtures.rb
@@ -1,13 +1,9 @@
-#!/usr/bin/env ruby
-# encoding: utf-8
# frozen_string_literal: false
-
-require 'test/unit'
-require File.join(File.dirname(__FILE__), 'setup_variant')
+require 'test_helper'
class TestJSONFixtures < Test::Unit::TestCase
def setup
- fixtures = File.join(File.dirname(__FILE__), 'fixtures/*.json')
+ fixtures = File.join(File.dirname(__FILE__), 'fixtures/{fail,pass}.json')
passed, failed = Dir[fixtures].partition { |f| f['pass'] }
@passed = passed.inject([]) { |a, f| a << [ f, File.read(f) ] }.sort
@failed = failed.inject([]) { |a, f| a << [ f, File.read(f) ] }.sort