Commits

peroumal1 committed 753ec69

Fixed the tests

  • Participants
  • Parent commits b7d3e12

Comments (0)

Files changed (1)

File t/lib/Apero/Bot/Test/Class.pm

     # create a configuration file in /tmp from there
     my $uniqid = uniqid;
     $test->bot_name($uniqid);
-    $test->conf_filename('/tmp/conf_tests.yml');
-    unlink $test->conf_filename if ( -f $test->conf_filename );
-    $test->config({
-        irc => {
-            channel => '#foo',
-            nick    => $uniqid,
-            port    => '6667',
-            server  => 'irc.aperogeek.fr',
-            token   => '%'
-        },
-        plugins => [ 'Hal', 'RestoGetter' ]
-    });
-    DumpFile( $test->conf_filename, $test->config );
+    $test->conf_filename('config-example.yml');
+    $test->config(
+        {   irc => {
+                channel        => "#foo",
+                global_ignores => [ "krakenbot" ],
+                nick           => "coolbotname",
+                plugins        => [
+                    "Hal",
+                    "RestoGetter",
+                    "DuckDuckGo",
+                    "Time",
+                    "Game"
+                ],
+                port   => 6667,
+                server => "some.coolircserver.com",
+                token  => "%"
+            }
+        }
+    );
 }
 
 sub setup : Tests(setup) {