[MacRuby-devel] Test problem

Martin Hawkins martin.hawkins at gmail.com
Thu Jan 27 10:26:52 PST 2011


I have a Classes/Helpers/Constants.rb module . Several classes use it,
so the following is common in my code:e.g

# File: Record.rb
require 'Constants'
include Constants
class Record
end

I have a test for Record.rb that worked prior to to my introduction of
Constants:
require 'test/unit'

class RecordTest < Test::Unit::TestCase
  etc
end

Since introducing the Constants module, I get
'run_suite.rb:3:in 'block': no such file to load -- Constants --
(LoadError)

I need to tell XCode where to find the Constants.rb file but I don't
know how. Can somebody please point me in the right direction?


More information about the MacRuby-devel mailing list