I run some tests and get this:
NoMethodError: undefined method `include?’ for #Set:0x000001009aa2d0
the offending line of code is this:
@@available_classes << file unless @@available_classes.include? file
If I remove the
unless @@available_classes.include? file then I still
get error messages, this time about
<< being undefined:
NoMethodError: undefined method `<<’ for #Set:0x0000010096a6a8
I checked the docs and Set has both of these defined, so I’m stumped as
to why this happens. It doesn’t happen when the application runs, it
runs fine, only when running the tests. I’ve added
require 'set' to
the top of the test file but that didn’t help.
I’m running this through Ruby 1.9.2 on OSX 10.6.4
Any help on this is much appreciated, as I’ve no idea what to try next.