Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-570

Allow running tests from the packaged gems

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Trivial - P5 Trivial - P5
    • 1.8.5
    • Affects Version/s: 1.8.4
    • Component/s: Tests
    • Labels:
      None
    • Environment:
      Linux (Debian)

      Hi!

      When building a Debian package from your gem, I noticed that I could not run the tests because of missing code in the test directory, namely:

      • test_helper.rb file (I got it from the Github repo, and removed some stuff unrelated to bson)
      • a require 'rbconfig' in test/bson/bson_test.rb
      • the code for the to_bson_code method for String objects

      Moreover, I got error about undefined classes when using
      require 'active_support/multibyte/chars'
      in test/bson/bson_tests.rb. Replacing it with simply
      require 'active_support'
      solved the problem.

      Thank you!

      Cheers,

      Cédric

      Some code is missing

            Assignee:
            brandon.black@10gen.com Brandon Black
            Reporter:
            boutil Cédric Boutillier
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: