summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@gmail.com>2016-08-28 20:20:53 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-08-28 20:01:41 -0700
commit1b074838308b6377af1461c4bd69028c193edd17 (patch)
treef10d050d7422478aa34a13c3a33c44623af9f0b2 /tests
parent3dce5de12ddbf310ed047227f3470d478b505540 (diff)
downloadsubsurface-1b074838308b6377af1461c4bd69028c193edd17.tar.gz
Settings update: Fix git_local_only loading
Thanks to the unittesting. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/testpreferences.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/testpreferences.cpp b/tests/testpreferences.cpp
index 652cf6f1d..3148bffea 100644
--- a/tests/testpreferences.cpp
+++ b/tests/testpreferences.cpp
@@ -30,6 +30,16 @@ void TestPreferences::testPreferences()
TEST(pref->cloud_storage->baseUrl(), QStringLiteral("test_one"));
pref->cloud_storage->setBaseUrl("test_two");
TEST(pref->cloud_storage->baseUrl(), QStringLiteral("test_two"));
+
+ pref->cloud_storage->setEmail("tomaz@subsurface.com");
+ TEST(pref->cloud_storage->email(), QStringLiteral("tomaz@subsurface.com"));
+ pref->cloud_storage->setEmail("tomaz@gmail.com");
+ TEST(pref->cloud_storage->email(), QStringLiteral("tomaz@gmail.com"));
+
+ pref->cloud_storage->setGitLocalOnly(true);
+ TEST(pref->cloud_storage->gitLocalOnly(), true);
+ pref->cloud_storage->setGitLocalOnly(false);
+ TEST(pref->cloud_storage->gitLocalOnly(), false);
}
QTEST_MAIN(TestPreferences)