R
Roni Kekkonen
Hello. I am working with the book "Everyday scripting with Ruby" (The
Pragmatic Programmers) and I'm at chapter 7 where I have touse require
to load up a file I have made myself (churn.rb). But everytime I run my
program, it complains the following:
(internal:lib/rubygems/custom_require):29:in 'recuire': no such file to
load -- churn (LoadError)
from (internal:lib/rubygems/custom_require):29:in 'require
from churntests.rb:2:in '(main)'
now, both files 'churn.rb' and 'churntests.rb' are in the same folder
(I'm programming under Windows) so churn should work. I even tried to
see if the textbook's files would work and even with them I got the same
error message.
I just can't understand it... I mean, I have the following lines at the
beginning of my churntests.rb:
require 'test/unit'
require 'churn'
and I have a ruby file named exactly as "churn.rb" in the same folder
where my churntests.rb is located at, so everything should be in order,
but somehow the require doesn't work...
I would appreciate it if someone could help me with my problem.
Pragmatic Programmers) and I'm at chapter 7 where I have touse require
to load up a file I have made myself (churn.rb). But everytime I run my
program, it complains the following:
(internal:lib/rubygems/custom_require):29:in 'recuire': no such file to
load -- churn (LoadError)
from (internal:lib/rubygems/custom_require):29:in 'require
from churntests.rb:2:in '(main)'
now, both files 'churn.rb' and 'churntests.rb' are in the same folder
(I'm programming under Windows) so churn should work. I even tried to
see if the textbook's files would work and even with them I got the same
error message.
I just can't understand it... I mean, I have the following lines at the
beginning of my churntests.rb:
require 'test/unit'
require 'churn'
and I have a ruby file named exactly as "churn.rb" in the same folder
where my churntests.rb is located at, so everything should be in order,
but somehow the require doesn't work...
I would appreciate it if someone could help me with my problem.