Sha256: a5f10ec660dd3c3136bd16821c39a85bcd2f9b5cf1c8994c2f3f8aabb79c8bdf
Contents?: true
Size: 1.8 KB
Versions: 5
Compression:
Stored size: 1.8 KB
Contents
# Test a simple assert test # # - name: Simple preassertion # class: TestTAssert # pre_assertions: # assert: # name: "HOME = /tmp/toto" # assertion: | # ENV{"HOME"} = /tmp/toto # test: true # post_assertions: ast --- name: Simple TestTAssert Test class: TestTSuite attributes: toto: tata content: - name: Test false class: TestTCmd command: false exit: 1 fatal: true - name: Simple test suite asserted class: TestTAssert attributes: command: true post_assertions: true content: - name: failed class: TestTCmd exit: 1 - name: pass class: TestTCmd exit: 0 - name: Simple test suite pre_assertions class: TestTAssert attributes: aliases: &tmp /tmp aliases: &fd0 /dev/fd0 aliases: &fstab /etc/fstab pre_assertions: - [ [ file.atime, *tmp ], >=, 2004-10-07 16:57:34.000000000 +02:00 ] - [ file.directory?, *tmp ] - [ not, [ file.chardev?, *tmp ] ] - [ file.blockdev?, *fd0 ] - [ [ file.basename, *fd0 ], ==, fd0 ] - [ [ file.ctime, *fd0 ], ==, 2004-01-29 18:14:37.000000000 +01:00 ] - [ not, [ file.exist?, /dev/tty0qsdf ] ] - [ [ file.chardev?, /dev/tty0 ] ] - [ [ 1002, <, [ file.size, *fstab ] ], or, [ [ file.size, *fstab ], <=, 1002 ] ] - [ [ file.dirname, /home/polrop/ruby/ ], =~, '/^\/home\/\w+/' ] - [ file.zero?, /dev/zero ] - [ kernel.eval, '3 + 3 + 5 + 6 == 17' ] - [ kernel.system, 'true' ] - [ [ file.basename, [ env.get, HOME ] ], ==, polrop ] - [ kernel.eval, 'File.basename(ENV["HOME"]) == "polrop"' ] - [ not, [ env.exist?, TOTO ] ] content: - name: Test true class: TestTFail fatal: true post_assertions: []
Version data entries
5 entries across 5 versions & 1 rubygems