Sebelumnya ada baiknya mengucap terimakasih kepada Ari dan Edwin yang sudah 
menolong di permasalah pertama tadi. Next, saya melakukan pembuktian 
transaction object pada Ruby on Rails :

Sumarry:
Saya membuka 2 windows DOS untuk membuktikan kebenaran transaction support di 
ruby on rails. Masing-masing windows memiliki time execution yang berbeda-beda. 
Berikut penjelasannya.

-----------------------
Window DOS 1
-----------------------

F:\ruby\tiesto>ruby test/unit/barang_terpesan_test.rb
Loaded suite test/unit/barang_terpesan_test
Started
.
Finished in 42.078 seconds.

1 tests, 0 assertions, 0 failures, 0 errors


---------------------------
Windows DOS 2
---------------------------

F:\ruby\project_dev>ruby test/unit/barang_terpesan_test.rb
Loaded suite test/unit/barang_terpesan_test
Started
.
Finished in 42.125 seconds.

1 tests, 0 assertions, 0 failures, 0 errors


-----------------------------------
SCRIPT di barang_terpesan_test.rb
-----------------------------------

require File.dirname(__FILE__) + '/../test_helper'

class BarangTerpesanTest < Test::Unit::TestCase
 fixtures :barang_terpesans


  def test_what
barang = BarangTerpesan.find(:first)   
    BarangTerpesan.transaction do
                barang.proses_modifikasi
        end


  end
  
end


      
____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

Kirim email ke