diff --git a/test/json/json_fixtures_test.rb b/test/json/json_fixtures_test.rb index 01954fe707..b2a1ec8b8c 100644 --- a/test/json/json_fixtures_test.rb +++ b/test/json/json_fixtures_test.rb @@ -3,7 +3,7 @@ require 'test_helper' class JSONFixturesTest < Test::Unit::TestCase def setup - fixtures = File.join(File.dirname(__FILE__), 'fixtures/{fail,pass}.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 @@ -29,4 +29,9 @@ class JSONFixturesTest < Test::Unit::TestCase end end end + + def test_sanity + assert(@passed.size > 5) + assert(@failed.size > 20) + end end