projects
/
ruby-eet.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Initial commit.
[ruby-eet.git]
/
test
/
common.rb
1
# $Id: common.rb 1 2005-03-26 01:45:38Z tilman $
2
3
class WrappedString
4
def initialize(blah)
5
@blah = blah
6
end
7
8
private
9
def to_eet_name
10
"String"
11
end
12
13
def to_eet_properties
14
{"buf" => [@blah]}
15
end
16
end
17
18
module Test
19
module Unit
20
module Assertions
21
def assert_run_successful(cmd, msg = nil)
22
`#{cmd}`
23
st = $?.exitstatus
24
25
message = build_message(msg, <<EOT, st)
26
Program failed with code <?>.
27
EOT
28
assert_block(message) { st == 0 }
29
end
30
end
31
end
32
end