From: Iain Barnett Date: 2010-09-27T22:12:36+09:00 Subject: error message, undefined method in Set Hi, I run some tests and get this: 1) Error: test_construction(TestTask): NoMethodError: undefined method `include?' for # ... 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: 1) Error: test_construction(TestTask): NoMethodError: undefined method `<<' for # ... 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. Regards, Iain