bioruby/bioruby — Issue #46: test_cut_symbol fails because of uninitialized constant Bio::RestrictionEnzyme::CutSymbol
Author: boutil
Created: 2012-02-27 15:58:40+00:00
State: open

Hi,

When building Debian packages of bioruby, the test suite is run. The test `test_cut_symbol.rb` is failing because constant Bio::RestrictionEnzyme::CutSymbol is not initialized. I guess that there may be a problem with the way `bio/util/restriction_enzyme/cut_symbol` is required by this test. Requiring instead `bio/util/restriction_enzyme` would ensure that everything is well defined (cut_symbol is then automatically loaded).

Here is the patch applied in Debian to solve this issue:

```
--- a/test/unit/bio/util/restriction_enzyme/test_cut_symbol.rb
+++ b/test/unit/bio/util/restriction_enzyme/test_cut_symbol.rb
@@ -15,7 +15,8 @@

# libraries needed for the tests
require 'test/unit'
-require 'bio/util/restriction_enzyme/cut_symbol'
+require 'bio/util/restriction_enzyme'
+#require 'bio/util/restriction_enzyme/cut_symbol'

module Bio; module TestRestrictionEnzyme #:nodoc:
```