From 1b074838308b6377af1461c4bd69028c193edd17 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Sun, 28 Aug 2016 20:20:53 -0300 Subject: Settings update: Fix git_local_only loading Thanks to the unittesting. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- tests/testpreferences.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tests') 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) -- cgit v1.2.3-70-g09d2