Class: Liza::PanelTest
Direct Known Subclasses
DevSystem::BenchPanelTest, DevSystem::CommandPanelTest, DevSystem::GeneratorPanelTest, DevSystem::LogPanelTest, DevSystem::ShellPanelTest, HappySystem::AxoPanelTest, NetSystem::ClientPanelTest, NetSystem::DatabasePanelTest, NetSystem::RecordPanelTest, WebSystem::RackPanelTest, WebSystem::RequestPanelTest
Instance Method Summary
collapse
Methods inherited from UnitTest
test_methods_defined
Methods inherited from Test
color, subsystem
Methods inherited from Unit
const_missing, division, part, system, #system, test_class
Instance Method Details
#assert_raises_2(e_class, &block) ⇒ Object
28
29
30
31
32
33
34
35
36
37
38
|
# File 'lib/liza/base/panel_test.rb', line 28
def assert_raises_2 e_class, &block
kaller = caller
begin
block.call
assert false, kaller: kaller
rescue e_class => e
assert true, kaller: kaller
rescue Exception => e
assert false, kaller: kaller
end
end
|
#refute_raises_2(e_class, &block) ⇒ Object
40
41
42
43
44
45
46
47
48
49
50
|
# File 'lib/liza/base/panel_test.rb', line 40
def refute_raises_2 e_class, &block
kaller = caller
begin
block.call
assert true, kaller: kaller
rescue e_class => e
assert false, kaller: kaller
rescue Exception => e
assert false, kaller: kaller
end
end
|
#subject ⇒ Object
6
7
8
|
# File 'lib/liza/base/panel_test.rb', line 6
def subject
@subject ||= subject_class.new "name"
end
|