#!/usr/bin/perl -w
use Test::More;
-use lib '../ex'; # Where BeerDB should live
+use lib 'ex'; # Where BeerDB should live
BEGIN {
$ENV{BEERDB_DEBUG} = 2;
like(BeerDB->call_url("http://localhost/beerdb/beer/do_edit/".$beer->id."?name=Oatmeal Stout&brewery=".$brewery->id."&price=-5.00"), qr/^# view/, "Negative values allowed for required field");
# TEST negative value actually got stored
- is($beer->price, '-5.00', "Negative value for required field stored in database")
+ like($beer->price, qr/-5(\.00)?/, "Negative value for required field stored in database")
};
$beer_id = $beer->id;