~ubuntu-branches/ubuntu/trusty/ruby1.9/trusty

« back to all changes in this revision

Viewing changes to test/json/test_json_fixtures.rb

  • Committer: Bazaar Package Importer
  • Author(s): Stephan Hermann
  • Date: 2008-01-24 11:42:29 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20080124114229-jw2f87rdxlq6gp11
Tags: 1.9.0.0-2ubuntu1
* Merge from debian unstable, remaining changes:
  - Robustify check for target_os, fixing build failure on lpia.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 
6
6
class TC_JSONFixtures < Test::Unit::TestCase
7
7
  def setup
8
 
    $KCODE = 'UTF8'
9
8
    fixtures = File.join(File.dirname(__FILE__), 'fixtures/*.json')
10
9
    passed, failed = Dir[fixtures].partition { |f| f['pass'] }
11
10
    @passed = passed.inject([]) { |a, f| a << [ f, File.read(f) ] }.sort