Skip to content
Browse files

Need to recreate test index before running searchbuilder tests

  • Loading branch information...
1 parent a9178b7 commit 3115c7f3a0b5538600a89180e3902a0f271b1d39 @clintongormley committed Aug 2, 2012
Showing with 8 additions and 2 deletions.
  1. +4 −1 t/70_searchbuilder/10_object_filters.t
  2. +4 −1 t/70_searchbuilder/11_object_queries.t
View
5 t/70_searchbuilder/10_object_filters.t
@@ -9,10 +9,13 @@ use Test::Exception;
use Elastic::Model::SearchBuilder;
use lib 't/lib';
+our $es;
+do 'es.pl';
use_ok 'MyApp' || print 'Bail out';
-my $model = new_ok( 'MyApp', [], 'Model' );
+my $model = new_ok( 'MyApp', [ es => $es ], 'Model' );
+ok $model->namespace('myapp')->index->create, 'Created index';
isa_ok my $domain = $model->domain('myapp'), 'Elastic::Model::Domain';
isa_ok
View
5 t/70_searchbuilder/11_object_queries.t
@@ -9,10 +9,13 @@ use Test::Exception;
use Elastic::Model::SearchBuilder;
use lib 't/lib';
+our $es;
+do 'es.pl';
use_ok 'MyApp' || print 'Bail out';
-my $model = new_ok( 'MyApp', [], 'Model' );
+my $model = new_ok( 'MyApp', [ es => $es ], 'Model' );
+ok $model->namespace('myapp')->index->create, 'Created index';
isa_ok my $domain = $model->domain('myapp'), 'Elastic::Model::Domain';
isa_ok

0 comments on commit 3115c7f

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