Good means a bit more than the very basics.
The background: the learn packaging group for diaspora; gem2deb does a good job, but tests often fail (and then all is in darkness).
I read a bit through ruby-in-20-minutes and ruby-the-hard-way (could be renamed: ruby the boring way) and observer the debian ruby irc channel.
To make it short: if you know someone let him know that i could need help.
thanks
When i ask ice-T all he does is shouting at ruby. I can see the point in that ... (i do it all the time).
To fill this with a bit of content. The following, a typical ruby-tests.rb, would be a good start to understand _fully_ :
- Code: Select all
require 'test/unit'
require 'mypackage' # if 'mypackage.rb' or 'mypackage.so' was not installed properly, this will fail
class MyPackageTest < Test::Unit::TestCase
def test_features
assert_equal 4, MyPackage.sum(2,2)
end
end
Looks rather easy ? Ok, let's look at this one:
- Code: Select all
require 'gem2deb/rake/testtask'
Gem2Deb:Rake::TestTask.new do |t|
t.test_files = FileList['test/*_test.rb']
end
Besides that there (seem to be) changes between ruby1.8 and 1.9; in syntax. But the former is more important.
channel is debian-diaspora.