From f4cee072f4a4900d866a695e31e9ccb2cbd43f30 Mon Sep 17 00:00:00 2001
From: anonym <anonym@riseup.net>
Date: Mon, 14 Dec 2015 21:42:15 +0100
Subject: [PATCH] Fix test suite for removal of Claws Mail preset.

---
 features/Configuration.feature   | 6 +++---
 features/Step_Configure.feature  | 6 +++---
 t/specs/Configuration.t          | 8 ++++----
 t/specs/Configuration::Presets.t | 4 ++--
 4 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/features/Configuration.feature b/features/Configuration.feature
index 971934f4..e406a58b 100644
--- a/features/Configuration.feature
+++ b/features/Configuration.feature
@@ -50,7 +50,7 @@ Feature: configuration model
   Scenario: merge empty file with default presets
     Given the file is empty
     When I merge the presets and the file
-    Then the list of configuration atoms should contain 14 elements
+    Then the list of configuration atoms should contain 13 elements
     And there should be 1 enabled configuration line
 
   Scenario: merge non-empty file with enabled-by-default preset in
@@ -60,7 +60,7 @@ Feature: configuration model
       /home/amnesia/.myapp source=myapp
       """
     When I merge the presets and the file
-    Then the list of configuration atoms should contain 15 elements
+    Then the list of configuration atoms should contain 14 elements
     And there should be 3 enabled configuration lines
 
   Scenario: merge non-empty file with disabled-by-default preset in
@@ -70,7 +70,7 @@ Feature: configuration model
       /home/amnesia/.myapp source=myapp
       """
     When I merge the presets and the file
-    Then the list of configuration atoms should contain 15 elements
+    Then the list of configuration atoms should contain 14 elements
     And there should be 3 enabled configuration lines
 
   Scenario: read and write file that contains a three-columns line
diff --git a/features/Step_Configure.feature b/features/Step_Configure.feature
index 3182df99..5c3198ed 100644
--- a/features/Step_Configure.feature
+++ b/features/Step_Configure.feature
@@ -7,9 +7,9 @@ Feature: configure step
     Given I have a Configuration object
     And I have a Step::Configure object
     Then I should have a defined Step::Configure object
-    And the list of item buttons should contain 14 elements
-    And the list of configuration atoms should contain 14 elements
-    And the list box should have 14 children
+    And the list of item buttons should contain 13 elements
+    And the list of configuration atoms should contain 13 elements
+    And the list box should have 13 children
     And there should be 1 active buttons
     And every active button's atom should be enabled
     And every inactive button's atom should be disabled
diff --git a/t/specs/Configuration.t b/t/specs/Configuration.t
index f24fd017..b5f4be8b 100644
--- a/t/specs/Configuration.t
+++ b/t/specs/Configuration.t
@@ -34,8 +34,8 @@ describe 'A configuration object' => sub {
                 config_file_path => file($config_filename)
             );
         };
-        it 'has 14 atoms' => sub {
-            is(scalar($configuration->all_atoms), 14);
+        it 'has 13 atoms' => sub {
+            is(scalar($configuration->all_atoms), 13);
         };
         it 'has 1 enabled atom' => sub {
             is(scalar($configuration->all_enabled_atoms), 1);
@@ -59,8 +59,8 @@ EOF
                 config_file_path => file($config_filename)
             );
         };
-        it 'has 15 atoms' => sub {
-            is(scalar($configuration->all_atoms), 15);
+        it 'has 14 atoms' => sub {
+            is(scalar($configuration->all_atoms), 14);
         };
         it 'has 4 enabled atoms' => sub {
             is(scalar($configuration->all_enabled_atoms), 4);
diff --git a/t/specs/Configuration::Presets.t b/t/specs/Configuration::Presets.t
index 57de8ecf..6f475194 100644
--- a/t/specs/Configuration::Presets.t
+++ b/t/specs/Configuration::Presets.t
@@ -14,8 +14,8 @@ describe 'A configuration presets object' => sub {
     it 'can return all presets' => sub {
         ok($presets->all);
     };
-    it 'has 14 elements' => sub {
-        is(scalar($presets->all), 14);
+    it 'has 13 elements' => sub {
+        is(scalar($presets->all), 13);
     };
     it 'has a GnuPG preset' => sub {
         is(scalar(grep { $_->name eq 'GnuPG' } $presets->all), 1);
-- 
GitLab