summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/database.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/database.cpp b/tests/database.cpp
index 5d557fd..b059d0d 100644
--- a/tests/database.cpp
+++ b/tests/database.cpp
@@ -83,6 +83,12 @@ TEST_CASE("Database")
THEN("we get the channel option")
CHECK(r.encodingIn == "channelEncoding");
}
+ WHEN("we fetch that option, with no channel specified")
+ {
+ auto r = Database::get_irc_channel_options_with_server_default(owner, server, "");
+ THEN("we get the server option")
+ CHECK(r.encodingIn == "serverEncoding");
+ }
}
}