Skip to content

Commit

Permalink
fix tests checking wrong result object, version to 0.29
Browse files Browse the repository at this point in the history
  • Loading branch information
gshank committed Aug 14, 2014
1 parent 818f740 commit e580d8a
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
0.29
Fix tests broken because item is now cleared

0.28
Remove unnecessary use of Business::ISBN

Expand Down
2 changes: 1 addition & 1 deletion dist.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ license = Perl_5
copyright_holder = Gerda Shank
copyright_year = 2013

version = 0.28
version = 0.29

[@Git]
tag_format = %v
Expand Down
2 changes: 1 addition & 1 deletion lib/HTML/FormHandler/Model/DBIC.pm
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use Moose;
extends 'HTML::FormHandler';
with 'HTML::FormHandler::TraitFor::Model::DBIC';

our $VERSION = '0.28';
our $VERSION = '0.29';

=head1 SUMMARY
Expand Down
1 change: 1 addition & 0 deletions t/db_validate.t
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ my $validated = $form->process( $bad );
ok( $validated, 'now form validates' );

$form->update_model;
$book = $form->item;
is( $book->year, 1999, 'book has been updated with correct data' );

done_testing;
1 change: 1 addition & 0 deletions t/model_dbic.t
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ my $params = {
};

$form3->process( params => $params );
$book3 = $form3->item;
is( $book3->publisher, 'S.Else', 'row object updated');
is( $form3->field('extra')->value, 'extra_test', 'value of non-db field');
ok( $form3->item->id, 'get id from new result');
Expand Down

0 comments on commit e580d8a

Please sign in to comment.