First working query example with promise based backend
Change-Id: Iee7360d123dc09876d942a32013077d78ea50b91
diff --git a/t/remote_user.t b/t/remote_user.t
index 96897e5..ee0b872 100644
--- a/t/remote_user.t
+++ b/t/remote_user.t
@@ -4,6 +4,10 @@
use Mojo::File qw/path/;
use Data::Dumper;
+
+#####################
+# Start Fake server #
+#####################
my $mount_point = '/api/';
$ENV{KALAMAR_API} = $mount_point;
@@ -19,10 +23,10 @@
$fixtures_path->child('fake_backend.pl')
}
);
-
# Configure fake backend
$fake_backend->pattern->defaults->{app}->log($t->app->log);
+
$t->get_ok('/api')
->status_is(200)
->content_is('Fake server available');
@@ -58,6 +62,7 @@
->tx->res->dom->at('input[name=csrf_token]')->attr('value')
;
+
$t->post_ok('/user/login' => form => { handle_or_email => 'test', pwd => 'pass', csrf_token => $csrf })
->status_is(302)
->header_is('Location' => '/');