Rake problem

I dont know why it cant execute my rake test.

D:\ruby\tiesto>rake test/unit/kantor_test.rb --trace
(in D:/ruby/tiesto)
** Invoke test/unit/kantor_test.rb (first_time, not_needed)

In my test/unit/kantor_test.rb

require File.dirname(FILE) + ‘/…/test_helper’

class KantorTest < Test::Unit::TestCase
fixtures :kantors

Replace this with your real tests.

def test_pertamax
valid_kantor = Kantor.new(:barang=>“pulpen”, :jumlah => 2)

   asser_equal 'pulpen 2', valid_kantor.gabungan
#assert true

end
end

Please helpe me.

Thank you.
Reinhart

On May 8, 9:49 am, Rails T. [email protected]
wrote:

I dont know why it cant execute my rake test.

It’s not a rake tast. It’s just a ruby script.

Fred

Hey,

try “ruby test/unit/kantor_test.rb -n test_pertamax” to initiate just
that one function or “rake test:units” to start all unit tests.

Falk

On 8 Mai, 10:49, Rails T. [email protected]