-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Al Newkirk
committed
Jun 14, 2012
1 parent
ac5f165
commit 224ccc2
Showing
8 changed files
with
51 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ NAME | |
Framework | ||
|
||
VERSION | ||
version 7.51 | ||
version 7.55 | ||
|
||
SYNOPSIS | ||
package MyVal::User; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
BEGIN { | ||
|
||
use FindBin; | ||
use lib $FindBin::Bin . "/myapp/lib"; | ||
|
||
} | ||
|
||
use utf8; | ||
use Test::More; | ||
|
||
{ | ||
|
||
# github issue 20 | ||
# https://github.com/alnewkirk/Validation-Class/issues/20 | ||
# test that the Validation::Class::Field object has the desired accessors | ||
|
||
package MyApp; | ||
|
||
use Validation::Class; | ||
|
||
set classes => 1; | ||
|
||
fld name => { | ||
|
||
required => 1 | ||
|
||
}; | ||
|
||
package main; | ||
|
||
my $class = "MyApp"; | ||
my $self = $class->new(name => "don johnson"); | ||
|
||
ok $class eq ref $self, "$class instantiated"; | ||
|
||
my $test = $self->class(name => 'test'); | ||
|
||
ok "MyApp::Test" eq ref $test, ref($test) . " instantiated"; | ||
|
||
} | ||
|
||
done_testing; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters