Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (21 sloc) 464 Bytes
package Retail::Test::Fixtures;
use JiftyX::ModelHelpers;
# use Retail::Test::Fixtures qw(providers commodities);
sub import {
my ($class, @fixtures) = @_;
for(@fixtures) {
if ($class->can($_)) {
$class->$_();
}
}
}
sub providers {
Provider->create(name => "good company");
}
sub consumers {
Consumer->create(name => "good consumer");
}
sub commodities {
Commodity->create(name => "Hello Kitty A");
}
1;