1 package RTest::UI::View;
3 use base qw/Reaction::Test/;
6 use Reaction::UI::View ;
9 #has 'view' => (isa => 'Reaction::UI::View', is => 'ro', lazy_build => 1);
10 #view doesn't yet have TCs for this so ican get away with it ...
12 # Reaction::UI::View->new(
16 sub test_layoutset_name_generation :Tests {
20 'MyApp::ViewPort::FooBar' => 'foo_bar',
21 'Reaction::UI::ViewPort::Foo_Bar' => 'foo_bar',
22 'MyApp::UI::ViewPort::FOOBar::fooBAR' => 'foo_bar/foo_bar',
23 'Reaction::UI::ViewPort::FooBARBaz::FooBAR_' => 'foo_bar_baz/foo_bar_',
25 while(my($class,$layout) = each %cases ){
26 my $res = Reaction::UI::View->layout_set_name_from_viewport($class);
27 Test::More::is($res,$layout,"layoutset name for $class")