Fix test that required SSL
Change-Id: I329abea8cfe3de4ff2358ea1ff48d599a1e00957
diff --git a/t/intro.t b/t/intro.t
index bb1a488..abd5e06 100644
--- a/t/intro.t
+++ b/t/intro.t
@@ -6,8 +6,26 @@
$ENV{KALAMAR_VERSION} = '0.47.999';
+#####################
+# Start Fake server #
+#####################
+my $mount_point = '/realapi/';
+$ENV{KALAMAR_API} = $mount_point;
+
my $t = Test::Mojo->new('Kalamar');
+# Mount fake backend
+# Get the fixture path
+my $fixtures_path = path(Mojo::File->new(__FILE__)->dirname, 'server');
+my $fake_backend = $t->app->plugin(
+ Mount => {
+ $mount_point =>
+ $fixtures_path->child('mock.pl')
+ }
+);
+# Configure fake backend
+$fake_backend->pattern->defaults->{app}->log($t->app->log);
+
$t->app->mode('production');
$t->get_ok('/')
@@ -67,6 +85,7 @@
->element_exists('#koralQuery')
->element_exists('aside.invisible')
->element_exists('aside.off')
+ ->text_is('#notifications > .notify-error', undef)
;
$t->get_ok('/huhuhuhuhu')