Module: File::Lock::Etest

Defined in:
lib/vex/base/filesystem/lock.rb

Constant Summary collapse

TESTFILE =
"#{__FILE__}.test"

Instance Method Summary collapse

Instance Method Details

#test_lockObject


30
31
32
33
34
35
36
37
38
39
# File 'lib/vex/base/filesystem/lock.rb', line 30

def test_lock
  i = 1
  File.locked TESTFILE do
    File.locked TESTFILE do
      i = 2
    end
  end
  
  assert_equal(2, i)
end

#test_lock_unsuccessfulObject


41
42
# File 'lib/vex/base/filesystem/lock.rb', line 41

def test_lock_unsuccessful
end