Skip to content
Browse files

add site config to dumpmeta result

  • Loading branch information...
1 parent bd97966 commit 3ec935303d437a53e687078a41e4cd258b87e84c @ollyg ollyg committed Nov 22, 2009
View
5 lib/Catalyst/Plugin/AutoCRUD/Controller/AJAX.pm
@@ -121,7 +121,10 @@ sub end : ActionClass('RenderView') {}
sub dumpmeta : Chained('base') Args(0) {
my ($self, $c) = @_;
- $c->stash->{json_data} = $c->stash->{lf};
+ $c->stash->{json_data} = {
+ lf => $c->stash->{lf},
+ site_conf => $c->stash->{site_conf},
+ };
return $self;
}
View
2 t/21-album-metadata.t
@@ -218,7 +218,7 @@ my $expected = {
};
-is_deeply( $response, $expected, 'Metadata is as we expect' );
+is_deeply( $response->{lf}, $expected, 'Metadata is as we expect' );
#use Data::Dumper;
#print STDERR Dumper [$response, $expected];
#warn $mech->content;
View
2 t/22-artist-metadata.t
@@ -120,7 +120,7 @@ my $expected = {
};
-is_deeply( $response, $expected, 'Metadata is as we expect' );
+is_deeply( $response->{lf}, $expected, 'Metadata is as we expect' );
#warn $mech->content;
__END__
View
2 t/23-copyright-metadata.t
@@ -99,7 +99,7 @@ my $expected = {
'dbpath2model' => { 'dbic' => 'AutoCRUD::DBIC' },
};
-is_deeply( $response, $expected, 'Metadata is as we expect' );
+is_deeply( $response->{lf}, $expected, 'Metadata is as we expect' );
#warn $mech->content;
__END__
View
2 t/24-track-metadata.t
@@ -244,7 +244,7 @@ my $expected = {
'dbpath2model' => { 'dbic' => 'AutoCRUD::DBIC' },
};
-is_deeply( $response, $expected, 'Metadata is as we expect' );
+is_deeply( $response->{lf}, $expected, 'Metadata is as we expect' );
#use Data::Dumper;
#print STDERR Dumper [$response, $expected];
#warn $mech->content;
View
2 t/25-sleeve-metadata.t
@@ -159,7 +159,7 @@ my $expected = {
'dbpath2model' => { 'dbic' => 'AutoCRUD::DBIC' },
};
-is_deeply( $response, $expected, 'Metadata is as we expect' );
+is_deeply( $response->{lf}, $expected, 'Metadata is as we expect' );
#warn $mech->content;
__END__
View
2 t/44-m2m-metadata.t
@@ -113,7 +113,7 @@ SKIP: {
skip "Lingua::EN::Inflect::Number not installed", 1 if $@;
- is_deeply( $response, $expected, 'Metadata is as we expect' );
+ is_deeply( $response->{lf}, $expected, 'Metadata is as we expect' );
}
#warn $mech->content;

0 comments on commit 3ec9353

Please sign in to comment.
Something went wrong with that request. Please try again.