{
ok(my $artist = $schema->resultset('Artist')->create({name => 'store_column test'}));
is($artist->name, 'X store_column test'); # used to be 'X X store...'
+
+ # call store_column even though the column doesn't seem to be dirty
+ ok($artist->update({name => 'X store_column test'}));
+ is($artist->name, 'X X store_column test');
$artist->delete;
}
sub store_column {
my ($self, $name, $value) = @_;
- $value = 'X '.$value if ($name eq 'name' && $value && $value =~ /store_column test/);
+ $value = 'X '.$value if ($name eq 'name' && $value && $value =~ /(X )?store_column test/);
$self->next::method($name, $value);
}