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 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On May 8, 9:49 am, Rails Terrorist <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> I dont know why it cant execute my rake test. >It''s not a rake tast. It''s just a ruby script. Fred> 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 > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 Terrorist <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> 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 > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---