Welcome to Working With Rails

 

Discussion Forums

Discuss all things Ruby on Rails with perhaps the web's most vibrant group of Ruby on Rails enthusiasts.
Newbie - Rake Cant Execute Test
4 Posts
Newbie - Rake Cant Execute Test

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

your "asser_equal" should be "assert_equal"

I did make assert_equal but the same thing happened. no changes:

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

Please help me what happen..

ah, sorry, just spotted the problem

try ruby test/unit/kantor_test.rb

(not rake)

4 Posts
Login to add your message