hammer_cli 0.5.1 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (215) hide show
  1. checksums.yaml +4 -4
  2. data/doc/installation.md +1 -1
  3. data/doc/release_notes.md +6 -0
  4. data/lib/hammer_cli/output/formatters.rb +7 -1
  5. data/lib/hammer_cli/testing/command_assertions.rb +119 -0
  6. data/lib/hammer_cli/testing/data_helpers.rb +19 -0
  7. data/lib/hammer_cli/testing/output_matchers.rb +105 -0
  8. data/lib/hammer_cli/version.rb +1 -1
  9. data/locale/de/LC_MESSAGES/hammer-cli.mo +0 -0
  10. data/locale/de/hammer-cli.edit.po +16 -16
  11. data/locale/de/hammer-cli.po +1 -1
  12. data/locale/en/LC_MESSAGES/hammer-cli.mo +0 -0
  13. data/locale/en/hammer-cli.po +1 -1
  14. data/locale/en_GB/LC_MESSAGES/hammer-cli.mo +0 -0
  15. data/locale/en_GB/hammer-cli.edit.po +25 -25
  16. data/locale/en_GB/hammer-cli.po +1 -1
  17. data/locale/es/LC_MESSAGES/hammer-cli.mo +0 -0
  18. data/locale/es/hammer-cli.po +1 -1
  19. data/locale/fr/LC_MESSAGES/hammer-cli.mo +0 -0
  20. data/locale/fr/hammer-cli.edit.po +26 -26
  21. data/locale/fr/hammer-cli.po +1 -1
  22. data/locale/it/LC_MESSAGES/hammer-cli.mo +0 -0
  23. data/locale/it/hammer-cli.edit.po +3 -3
  24. data/locale/it/hammer-cli.po +1 -1
  25. data/locale/ja/LC_MESSAGES/hammer-cli.mo +0 -0
  26. data/locale/ja/hammer-cli.edit.po +3 -3
  27. data/locale/ja/hammer-cli.po +1 -1
  28. data/locale/ko/LC_MESSAGES/hammer-cli.mo +0 -0
  29. data/locale/ko/hammer-cli.edit.po +3 -3
  30. data/locale/ko/hammer-cli.po +1 -1
  31. data/locale/pt_BR/LC_MESSAGES/hammer-cli.mo +0 -0
  32. data/locale/pt_BR/hammer-cli.po +1 -1
  33. data/locale/ru/LC_MESSAGES/hammer-cli.mo +0 -0
  34. data/locale/ru/hammer-cli.edit.po +3 -3
  35. data/locale/ru/hammer-cli.po +1 -1
  36. data/locale/zh_CN/LC_MESSAGES/hammer-cli.mo +0 -0
  37. data/locale/zh_CN/hammer-cli.edit.po +3 -3
  38. data/locale/zh_CN/hammer-cli.po +1 -1
  39. data/locale/zh_TW/LC_MESSAGES/hammer-cli.mo +0 -0
  40. data/locale/zh_TW/hammer-cli.edit.po +3 -3
  41. data/locale/zh_TW/hammer-cli.po +1 -1
  42. data/test/functional/defaults_test.rb +85 -55
  43. data/test/functional/test_helper.rb +9 -0
  44. data/test/reports/TEST-Fields-ContainerField-display-.xml +1 -1
  45. data/test/reports/TEST-Fields-ContainerField-display-blank-is-allowed.xml +5 -5
  46. data/test/reports/TEST-Fields-ContainerField-display-blank-is-not-allowed.xml +5 -5
  47. data/test/reports/TEST-Fields-ContainerField.xml +1 -1
  48. data/test/reports/TEST-Fields-Field-display-.xml +1 -1
  49. data/test/reports/TEST-Fields-Field-display-blank-is-allowed.xml +3 -3
  50. data/test/reports/TEST-Fields-Field-display-blank-is-not-allowed.xml +3 -3
  51. data/test/reports/TEST-Fields-Field-hide-blank-.xml +3 -3
  52. data/test/reports/TEST-Fields-Field-parameters.xml +2 -2
  53. data/test/reports/TEST-Fields-Field.xml +4 -4
  54. data/test/reports/TEST-HammerCLI-AbstractCommand-build-options.xml +5 -5
  55. data/test/reports/TEST-HammerCLI-AbstractCommand-exception-handler.xml +4 -4
  56. data/test/reports/TEST-HammerCLI-AbstractCommand-logging.xml +8 -10
  57. data/test/reports/TEST-HammerCLI-AbstractCommand-option-builder.xml +3 -3
  58. data/test/reports/TEST-HammerCLI-AbstractCommand-options.xml +3 -3
  59. data/test/reports/TEST-HammerCLI-AbstractCommand-output.xml +7 -7
  60. data/test/reports/TEST-HammerCLI-AbstractCommand-subcommand-behavior-remove-subcommand.xml +3 -3
  61. data/test/reports/TEST-HammerCLI-AbstractCommand-subcommand-behavior-subcommand-.xml +4 -4
  62. data/test/reports/TEST-HammerCLI-AbstractCommand-subcommand-behavior-subcommand.xml +3 -3
  63. data/test/reports/TEST-HammerCLI-AbstractCommand-subcommand-behavior.xml +1 -1
  64. data/test/reports/TEST-HammerCLI-AbstractCommand.xml +3 -3
  65. data/test/reports/TEST-HammerCLI-Apipie-Command-options.xml +3 -3
  66. data/test/reports/TEST-HammerCLI-Apipie-Command-resource-defined.xml +2 -2
  67. data/test/reports/TEST-HammerCLI-Apipie-Command-setting-resources.xml +7 -7
  68. data/test/reports/TEST-HammerCLI-Apipie-Command.xml +2 -2
  69. data/test/reports/TEST-HammerCLI-Apipie-OptionBuilder-aliasing-resources.xml +4 -4
  70. data/test/reports/TEST-HammerCLI-Apipie-OptionBuilder-filtering-options.xml +5 -5
  71. data/test/reports/TEST-HammerCLI-Apipie-OptionBuilder-required-options.xml +3 -3
  72. data/test/reports/TEST-HammerCLI-Apipie-OptionBuilder-setting-correct-normalizers.xml +2 -8
  73. data/test/reports/TEST-HammerCLI-Apipie-OptionBuilder-with-hash-params.xml +3 -3
  74. data/test/reports/TEST-HammerCLI-Apipie-OptionBuilder-with-one-simple-param.xml +5 -5
  75. data/test/reports/TEST-HammerCLI-Apipie-OptionBuilder.xml +1 -1
  76. data/test/reports/TEST-HammerCLI-Completer-command-completion.xml +12 -12
  77. data/test/reports/TEST-HammerCLI-Completer-option-value-completion.xml +6 -6
  78. data/test/reports/TEST-HammerCLI-Completer-subcommand-completion.xml +7 -7
  79. data/test/reports/TEST-HammerCLI-Completer.xml +1 -1
  80. data/test/reports/TEST-HammerCLI-CompleterLine-line-complete.xml +10 -10
  81. data/test/reports/TEST-HammerCLI-CompleterLine-splitting-words.xml +12 -12
  82. data/test/reports/TEST-HammerCLI-CompleterLine.xml +1 -1
  83. data/test/reports/TEST-HammerCLI-CompleterWord-complete-.xml +9 -9
  84. data/test/reports/TEST-HammerCLI-CompleterWord-quote.xml +5 -5
  85. data/test/reports/TEST-HammerCLI-CompleterWord-quoted-.xml +4 -4
  86. data/test/reports/TEST-HammerCLI-CompleterWord.xml +1 -1
  87. data/test/reports/TEST-HammerCLI-Connection.xml +8 -8
  88. data/test/reports/TEST-HammerCLI-ExceptionHandler.xml +8 -8
  89. data/test/reports/TEST-HammerCLI-I18n.xml +3 -3
  90. data/test/reports/TEST-HammerCLI-MainCommand-loading-context-password.xml +3 -3
  91. data/test/reports/TEST-HammerCLI-MainCommand-loading-context-username.xml +3 -3
  92. data/test/reports/TEST-HammerCLI-MainCommand-loading-context-verbose.xml +2 -2
  93. data/test/reports/TEST-HammerCLI-MainCommand-loading-context.xml +1 -1
  94. data/test/reports/TEST-HammerCLI-MainCommand.xml +1 -1
  95. data/test/reports/TEST-HammerCLI-Modules-find-by-name.xml +4 -4
  96. data/test/reports/TEST-HammerCLI-Modules-load-a-module-module-not-found.xml +4 -4
  97. data/test/reports/TEST-HammerCLI-Modules-load-a-module-module-runtime-exception.xml +4 -4
  98. data/test/reports/TEST-HammerCLI-Modules-load-a-module-success.xml +5 -5
  99. data/test/reports/TEST-HammerCLI-Modules-load-a-module.xml +1 -1
  100. data/test/reports/TEST-HammerCLI-Modules-load-all-modules.xml +2 -4
  101. data/test/reports/TEST-HammerCLI-Modules-names.xml +4 -4
  102. data/test/reports/TEST-HammerCLI-Modules.xml +1 -1
  103. data/test/reports/TEST-HammerCLI-OptionBuilderContainer.0.xml +1 -5
  104. data/test/reports/TEST-HammerCLI-OptionBuilderContainer.xml +5 -1
  105. data/test/reports/TEST-HammerCLI-Options-Normalizers-abstract.xml +2 -2
  106. data/test/reports/TEST-HammerCLI-Options-Normalizers-bool.xml +13 -13
  107. data/test/reports/TEST-HammerCLI-Options-Normalizers-datetime.xml +6 -6
  108. data/test/reports/TEST-HammerCLI-Options-Normalizers-enum.xml +5 -5
  109. data/test/reports/TEST-HammerCLI-Options-Normalizers-enumlist.xml +8 -8
  110. data/test/reports/TEST-HammerCLI-Options-Normalizers-json-input.xml +5 -5
  111. data/test/reports/TEST-HammerCLI-Options-Normalizers-key-value-list.xml +6 -26
  112. data/test/reports/TEST-HammerCLI-Options-Normalizers-list.xml +5 -5
  113. data/test/reports/TEST-HammerCLI-Options-Normalizers.xml +1 -1
  114. data/test/reports/TEST-HammerCLI-Options-OptionDefinition-context.xml +2 -2
  115. data/test/reports/TEST-HammerCLI-Options-OptionDefinition-formatters.xml +3 -3
  116. data/test/reports/TEST-HammerCLI-Options-OptionDefinition.xml +1 -1
  117. data/test/reports/TEST-HammerCLI-Output-Adapter-Abstract-error-messages.xml +5 -5
  118. data/test/reports/TEST-HammerCLI-Output-Adapter-Abstract-messages.xml +3 -3
  119. data/test/reports/TEST-HammerCLI-Output-Adapter-Abstract-test-data-for-field.xml +5 -5
  120. data/test/reports/TEST-HammerCLI-Output-Adapter-Abstract.xml +6 -6
  121. data/test/reports/TEST-HammerCLI-Output-Adapter-Base-print-collection-show-ids.xml +2 -2
  122. data/test/reports/TEST-HammerCLI-Output-Adapter-Base-print-collection.xml +11 -11
  123. data/test/reports/TEST-HammerCLI-Output-Adapter-Base.xml +1 -1
  124. data/test/reports/TEST-HammerCLI-Output-Adapter-CSValues-print-collection-formatters.xml +3 -3
  125. data/test/reports/TEST-HammerCLI-Output-Adapter-CSValues-print-collection-handle-fields-with-collections.xml +4 -4
  126. data/test/reports/TEST-HammerCLI-Output-Adapter-CSValues-print-collection-handle-fields-with-containers.xml +3 -3
  127. data/test/reports/TEST-HammerCLI-Output-Adapter-CSValues-print-collection-handle-ids.xml +3 -3
  128. data/test/reports/TEST-HammerCLI-Output-Adapter-CSValues-print-collection.xml +3 -3
  129. data/test/reports/TEST-HammerCLI-Output-Adapter-CSValues-print-message.xml +3 -3
  130. data/test/reports/TEST-HammerCLI-Output-Adapter-CSValues.xml +1 -1
  131. data/test/reports/TEST-HammerCLI-Output-Adapter-Table-print-collection-column-width.xml +5 -11
  132. data/test/reports/TEST-HammerCLI-Output-Adapter-Table-print-collection-formatters.xml +3 -3
  133. data/test/reports/TEST-HammerCLI-Output-Adapter-Table-print-collection-handle-ids.xml +3 -7
  134. data/test/reports/TEST-HammerCLI-Output-Adapter-Table-print-collection-sort-columns.xml +2 -2
  135. data/test/reports/TEST-HammerCLI-Output-Adapter-Table-print-collection.xml +3 -3
  136. data/test/reports/TEST-HammerCLI-Output-Adapter-Table.xml +1 -1
  137. data/test/reports/TEST-HammerCLI-Output-Definition-empty-.xml +3 -3
  138. data/test/reports/TEST-HammerCLI-Output-Definition.xml +3 -3
  139. data/test/reports/TEST-HammerCLI-Output-Dsl-collection.xml +4 -4
  140. data/test/reports/TEST-HammerCLI-Output-Dsl-custom-fields.xml +3 -3
  141. data/test/reports/TEST-HammerCLI-Output-Dsl-fields.xml +5 -5
  142. data/test/reports/TEST-HammerCLI-Output-Dsl-label.xml +4 -4
  143. data/test/reports/TEST-HammerCLI-Output-Dsl-path-definition.xml +4 -4
  144. data/test/reports/TEST-HammerCLI-Output-Dsl.xml +2 -2
  145. data/test/reports/TEST-HammerCLI-Output-FieldFilter.xml +4 -4
  146. data/test/reports/TEST-HammerCLI-Output-Formatters-BooleanFormatter.xml +3 -3
  147. data/test/reports/TEST-HammerCLI-Output-Formatters-ColorFormatter.xml +2 -2
  148. data/test/reports/TEST-HammerCLI-Output-Formatters-DateFormatter.xml +3 -3
  149. data/test/reports/TEST-HammerCLI-Output-Formatters-FieldFormatter.xml +4 -4
  150. data/test/reports/TEST-HammerCLI-Output-Formatters-FormatterContainer.xml +4 -4
  151. data/test/reports/TEST-HammerCLI-Output-Formatters-FormatterLibrary.xml +3 -3
  152. data/test/reports/TEST-HammerCLI-Output-Formatters-KeyValueFormatter.xml +4 -4
  153. data/test/reports/TEST-HammerCLI-Output-Formatters-ListFormatter.xml +4 -4
  154. data/test/reports/TEST-HammerCLI-Output-Formatters-LongTextFormatter.xml +4 -4
  155. data/test/reports/TEST-HammerCLI-Output-Output-adapters.xml +6 -6
  156. data/test/reports/TEST-HammerCLI-Output-Output-data.xml +5 -5
  157. data/test/reports/TEST-HammerCLI-Output-Output-formatters.xml +2 -2
  158. data/test/reports/TEST-HammerCLI-Output-Output-messages.xml +7 -7
  159. data/test/reports/TEST-HammerCLI-Output-Output.xml +1 -1
  160. data/test/reports/TEST-HammerCLI-Output-RecordCollection.xml +4 -4
  161. data/test/reports/TEST-HammerCLI-Settings-load-from-paths.xml +5 -5
  162. data/test/reports/TEST-HammerCLI-Settings.xml +10 -10
  163. data/test/reports/TEST-HammerCLI-ShellHistory-loading-old-history.xml +3 -3
  164. data/test/reports/TEST-HammerCLI-ShellHistory-saving-history.xml +5 -5
  165. data/test/reports/TEST-HammerCLI-ShellHistory.xml +1 -1
  166. data/test/reports/TEST-MiniTest-Spec.xml +1 -1
  167. data/test/reports/TEST-String-camelize.xml +3 -3
  168. data/test/reports/TEST-String-formatting.xml +6 -6
  169. data/test/reports/TEST-String-indent.xml +3 -3
  170. data/test/reports/{TEST-HammerCLI-interactive-.xml → TEST-String-interactive-.xml} +4 -4
  171. data/test/reports/TEST-String.xml +1 -1
  172. data/test/reports/TEST-constraints-HammerCLI-Validator-AllConstraint-exist-.xml +4 -4
  173. data/test/reports/TEST-constraints-HammerCLI-Validator-AllConstraint.xml +1 -1
  174. data/test/reports/TEST-constraints-HammerCLI-Validator-AnyConstraint-exist-.xml +4 -4
  175. data/test/reports/TEST-constraints-HammerCLI-Validator-AnyConstraint.xml +1 -1
  176. data/test/reports/TEST-constraints-HammerCLI-Validator-BaseConstraint-exist-.xml +2 -2
  177. data/test/reports/TEST-constraints-HammerCLI-Validator-BaseConstraint-rejected.xml +4 -4
  178. data/test/reports/TEST-constraints-HammerCLI-Validator-BaseConstraint-required.xml +4 -4
  179. data/test/reports/TEST-constraints-HammerCLI-Validator-BaseConstraint.xml +1 -1
  180. data/test/reports/TEST-constraints.xml +1 -1
  181. data/test/test_helper.rb +20 -0
  182. data/test/unit/output/formatters_test.rb +20 -3
  183. data/test/unit/test_helper.rb +1 -20
  184. metadata +195 -251
  185. data/test/reports/TEST-Fields-Label-display-.xml +0 -7
  186. data/test/reports/TEST-Fields-Label-display-blank-is-allowed.xml +0 -15
  187. data/test/reports/TEST-Fields-Label-display-blank-is-not-allowed.xml +0 -15
  188. data/test/reports/TEST-Fields-Label.xml +0 -7
  189. data/test/reports/TEST-HammerCLI-Apipie-Command-reload-apipie-cache.xml +0 -11
  190. data/test/reports/TEST-HammerCLI-Apipie-OptionBuilder-setting-referenced-resources.xml +0 -9
  191. data/test/reports/TEST-HammerCLI-Apipie-OptionDefinition-referenced-resource.xml +0 -13
  192. data/test/reports/TEST-HammerCLI-Apipie-OptionDefinition.xml +0 -7
  193. data/test/reports/TEST-HammerCLI-Defaults.xml +0 -19
  194. data/test/reports/TEST-HammerCLI-Options-Matcher.xml +0 -17
  195. data/test/reports/TEST-HammerCLI-Options-Normalizers-number.xml +0 -11
  196. data/test/reports/TEST-HammerCLI-Options-OptionDefinition-deprecated-options.xml +0 -11
  197. data/test/reports/TEST-HammerCLI-Output-Adapter-Json-print-collection-show-ids.xml +0 -9
  198. data/test/reports/TEST-HammerCLI-Output-Adapter-Json-print-collection.xml +0 -27
  199. data/test/reports/TEST-HammerCLI-Output-Adapter-Json-print-message.xml +0 -11
  200. data/test/reports/TEST-HammerCLI-Output-Adapter-Json.xml +0 -7
  201. data/test/reports/TEST-HammerCLI-Output-Adapter-Yaml-print-collection-show-ids.xml +0 -9
  202. data/test/reports/TEST-HammerCLI-Output-Adapter-Yaml-print-collection.xml +0 -27
  203. data/test/reports/TEST-HammerCLI-Output-Adapter-Yaml-print-message.xml +0 -11
  204. data/test/reports/TEST-HammerCLI-Output-Adapter-Yaml.xml +0 -7
  205. data/test/reports/TEST-HammerCLI-constant-path.xml +0 -15
  206. data/test/reports/TEST-HammerCLI.xml +0 -7
  207. data/test/reports/TEST-Logging-LogEvent-filtering.xml +0 -9
  208. data/test/reports/TEST-Logging-LogEvent.xml +0 -7
  209. data/test/reports/TEST-String-constantize.xml +0 -15
  210. data/test/reports/TEST-String-underscore.xml +0 -13
  211. data/test/reports/TEST-commands-defaults-add.xml +0 -21
  212. data/test/reports/TEST-commands-defaults-delete.xml +0 -11
  213. data/test/reports/TEST-commands-defaults-list.xml +0 -11
  214. data/test/reports/TEST-commands-defaults-providers.xml +0 -11
  215. data/test/reports/TEST-commands.xml +0 -7
@@ -3,7 +3,7 @@
3
3
  # This file is distributed under the same license as the hammer-cli package.
4
4
  #
5
5
  # Translators:
6
- # Claer <transiblu@claer.hammock.fr>, 2014-2015
6
+ # Claer <transiblu@claer.hammock.fr>, 2014-2016
7
7
  # Dominic Cleal <dominic@cleal.org>, 2014
8
8
  # Pierre-Emmanuel Dutang <dutangp@gmail.com>, 2014
9
9
  msgid ""
@@ -11,8 +11,8 @@ msgstr ""
11
11
  "Project-Id-Version: Foreman\n"
12
12
  "Report-Msgid-Bugs-To: \n"
13
13
  "POT-Creation-Date: 2015-12-08 08:56+0000\n"
14
- "PO-Revision-Date: 2015-12-11 09:09+0000\n"
15
- "Last-Translator: Lukáš Zapletal\n"
14
+ "PO-Revision-Date: 2016-01-04 17:55+0000\n"
15
+ "Last-Translator: Claer <transiblu@claer.hammock.fr>\n"
16
16
  "Language-Team: French (http://www.transifex.com/foreman/foreman/language/fr/)\n"
17
17
  "MIME-Version: 1.0\n"
18
18
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -58,99 +58,99 @@ msgstr "Aucune valeur fournit"
58
58
 
59
59
  #: ../lib/hammer_cli/defaults.rb:72
60
60
  msgid "Couldn't create %s please create the path before defaults are enabled."
61
- msgstr ""
61
+ msgstr "Impossible de créer %s, merci de créer le répertoire avant d'activer les options par défaut."
62
62
 
63
63
  #: ../lib/hammer_cli/defaults.rb:82
64
64
  msgid "Defaults management"
65
- msgstr ""
65
+ msgstr "Gestion par défaut"
66
66
 
67
67
  #: ../lib/hammer_cli/defaults_commands.rb:25
68
68
  msgid "List all the providers"
69
- msgstr ""
69
+ msgstr "Afficher tous les fournisseurs"
70
70
 
71
71
  #: ../lib/hammer_cli/defaults_commands.rb:37
72
72
  msgid "Provider"
73
- msgstr ""
73
+ msgstr "Fournisseur"
74
74
 
75
75
  #: ../lib/hammer_cli/defaults_commands.rb:38
76
76
  msgid "Supported defaults"
77
- msgstr ""
77
+ msgstr "Valeurs par défaut prises en charge"
78
78
 
79
79
  #: ../lib/hammer_cli/defaults_commands.rb:39
80
80
  msgid "Description"
81
- msgstr ""
81
+ msgstr "Description"
82
82
 
83
83
  #: ../lib/hammer_cli/defaults_commands.rb:56
84
84
  msgid "List all the default parameters"
85
- msgstr ""
85
+ msgstr "Afficher les paramètres par défaut"
86
86
 
87
87
  #: ../lib/hammer_cli/defaults_commands.rb:67
88
88
  msgid "Parameter"
89
- msgstr ""
89
+ msgstr "Paramètre"
90
90
 
91
91
  #: ../lib/hammer_cli/defaults_commands.rb:68
92
92
  msgid "Value"
93
- msgstr ""
93
+ msgstr "Valeur"
94
94
 
95
95
  #: ../lib/hammer_cli/defaults_commands.rb:86
96
96
  msgid "Delete a default param"
97
- msgstr ""
97
+ msgstr "Supprimer un paramètre par défaut"
98
98
 
99
99
  #: ../lib/hammer_cli/defaults_commands.rb:87
100
100
  msgid "The name of the default option"
101
- msgstr ""
101
+ msgstr "Le nom de l'option par défaut"
102
102
 
103
103
  #: ../lib/hammer_cli/defaults_commands.rb:103
104
104
  msgid "Add a default parameter to config"
105
- msgstr ""
105
+ msgstr "Ajout d'un paramètre par défaut à la configuration"
106
106
 
107
107
  #: ../lib/hammer_cli/defaults_commands.rb:104
108
108
  msgid "The name of the default option (e.g. organization_id)."
109
- msgstr ""
109
+ msgstr "Le nom de l'option par défaut (par ex. organization_id)."
110
110
 
111
111
  #: ../lib/hammer_cli/defaults_commands.rb:105
112
112
  msgid "The value for the default option"
113
- msgstr ""
113
+ msgstr "La valeur pour l'option par défaut"
114
114
 
115
115
  #: ../lib/hammer_cli/defaults_commands.rb:106
116
116
  msgid ""
117
117
  "The name of the provider providing the value. For list available providers "
118
118
  "see `hammer defaults providers`."
119
- msgstr ""
119
+ msgstr "Le nom du fournisseur délivrant la valeur par défaut. Pour une liste des fournisseurs disponibles veuillez consulter `hammer defaults providers`."
120
120
 
121
121
  #: ../lib/hammer_cli/defaults_commands.rb:134
122
122
  msgid ""
123
123
  "Added %{key_val} default-option with value that will be generated from the "
124
124
  "server."
125
- msgstr ""
125
+ msgstr "Ajout de l'option par défaut %{key_val} avec la valeur qui est générée par le serveur."
126
126
 
127
127
  #: ../lib/hammer_cli/defaults_commands.rb:135
128
128
  msgid "Added %{key_val} default-option with value %{val_val}."
129
- msgstr ""
129
+ msgstr "Ajout de l'option par défaut %{key_val} avec la valeur %{val_val}."
130
130
 
131
131
  #: ../lib/hammer_cli/defaults_commands.rb:139
132
132
  msgid ""
133
133
  "\"Provider #{namespace} was not found. See `hammer defaults providers` for "
134
134
  "available providers.\""
135
- msgstr ""
135
+ msgstr "\"Le fournisseur #{namespace} est indisponible. Voir `hammer defaults providers` pour afficher la liste des fournisseurs disponibles.\""
136
136
 
137
137
  #: ../lib/hammer_cli/defaults_commands.rb:143
138
138
  msgid ""
139
139
  "The param name is not supported by provider. See `hammer defaults providers`"
140
140
  " for supported params."
141
- msgstr ""
141
+ msgstr "Le paramètre n'est pas supporté par le fournisseur. Voir `hammer defaults providers` pour afficher la liste des paramètres supportés."
142
142
 
143
143
  #: ../lib/hammer_cli/defaults_commands.rb:147
144
144
  msgid "%{param} was deleted successfully."
145
- msgstr ""
145
+ msgstr "Succès de la suppression de %{param}."
146
146
 
147
147
  #: ../lib/hammer_cli/defaults_commands.rb:151
148
148
  msgid "You must specify value or a provider name, cant specify both."
149
- msgstr ""
149
+ msgstr "Vous devez spécifier une valeur ou un nom de fournisseur, vous ne pouvez pas spécifier les deux."
150
150
 
151
151
  #: ../lib/hammer_cli/defaults_commands.rb:155
152
152
  msgid "Couldn't find the requested param in %s."
153
- msgstr ""
153
+ msgstr "Impossible de trouver le paramètre dans %s."
154
154
 
155
155
  #: ../lib/hammer_cli/exception_handler.rb:62
156
156
  msgid "Error: %s"
@@ -326,7 +326,7 @@ msgstr "la valeur doit être une combinaison de '%s'"
326
326
 
327
327
  #: ../lib/hammer_cli/options/option_definition.rb:56
328
328
  msgid "Warning: Option %{option} is deprecated. %{message}"
329
- msgstr ""
329
+ msgstr "Attention : L'option %{option} n'est plus supportée. %{message}"
330
330
 
331
331
  #: ../lib/hammer_cli/options/option_definition.rb:80
332
332
  msgid "Can be specified multiple times. "
@@ -9,7 +9,7 @@
9
9
  # jcarbone <jcarbone@redhat.com>, 2015. #zanata
10
10
  msgid ""
11
11
  msgstr ""
12
- "Project-Id-Version: hammer-cli 0.4.0\n"
12
+ "Project-Id-Version: hammer-cli 0.6.0\n"
13
13
  "Report-Msgid-Bugs-To: \n"
14
14
  "PO-Revision-Date: 2015-04-28 08:20+0000\n"
15
15
  "Last-Translator: jcarbone <jcarbone@redhat.com>\n"
Binary file
@@ -10,8 +10,8 @@ msgstr ""
10
10
  "Project-Id-Version: Foreman\n"
11
11
  "Report-Msgid-Bugs-To: \n"
12
12
  "POT-Creation-Date: 2015-12-08 08:56+0000\n"
13
- "PO-Revision-Date: 2015-12-11 09:09+0000\n"
14
- "Last-Translator: Lukáš Zapletal\n"
13
+ "PO-Revision-Date: 2016-02-24 23:02+0000\n"
14
+ "Last-Translator: Bryan Kearney <bryan.kearney@gmail.com>\n"
15
15
  "Language-Team: Italian (http://www.transifex.com/foreman/foreman/language/it/)\n"
16
16
  "MIME-Version: 1.0\n"
17
17
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -227,7 +227,7 @@ msgstr "mostra versione"
227
227
 
228
228
  #: ../lib/hammer_cli/main.rb:23
229
229
  msgid "unknown version"
230
- msgstr ""
230
+ msgstr "versione sconosciuta"
231
231
 
232
232
  #: ../lib/hammer_cli/main.rb:29
233
233
  msgid "Show ids of associated resources"
@@ -8,7 +8,7 @@
8
8
  # fvalen <fvalen@redhat.com>, 2015. #zanata
9
9
  msgid ""
10
10
  msgstr ""
11
- "Project-Id-Version: hammer-cli 0.4.0\n"
11
+ "Project-Id-Version: hammer-cli 0.6.0\n"
12
12
  "Report-Msgid-Bugs-To: \n"
13
13
  "PO-Revision-Date: 2015-04-28 01:00+0000\n"
14
14
  "Last-Translator: fvalen <fvalen@redhat.com>\n"
Binary file
@@ -9,8 +9,8 @@ msgstr ""
9
9
  "Project-Id-Version: Foreman\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
11
  "POT-Creation-Date: 2015-12-08 08:56+0000\n"
12
- "PO-Revision-Date: 2015-12-11 09:09+0000\n"
13
- "Last-Translator: Lukáš Zapletal\n"
12
+ "PO-Revision-Date: 2016-02-24 23:02+0000\n"
13
+ "Last-Translator: Bryan Kearney <bryan.kearney@gmail.com>\n"
14
14
  "Language-Team: Japanese (http://www.transifex.com/foreman/foreman/language/ja/)\n"
15
15
  "MIME-Version: 1.0\n"
16
16
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -226,7 +226,7 @@ msgstr "バージョンの表示"
226
226
 
227
227
  #: ../lib/hammer_cli/main.rb:23
228
228
  msgid "unknown version"
229
- msgstr ""
229
+ msgstr "不明なバージョン"
230
230
 
231
231
  #: ../lib/hammer_cli/main.rb:29
232
232
  msgid "Show ids of associated resources"
@@ -6,7 +6,7 @@
6
6
  # asasaki <asasaki@redhat.com>, 2015. #zanata
7
7
  msgid ""
8
8
  msgstr ""
9
- "Project-Id-Version: hammer-cli 0.4.0\n"
9
+ "Project-Id-Version: hammer-cli 0.6.0\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
11
  "PO-Revision-Date: 2015-04-27 06:44+0000\n"
12
12
  "Last-Translator: asasaki <asasaki@redhat.com>\n"
Binary file
@@ -9,8 +9,8 @@ msgstr ""
9
9
  "Project-Id-Version: Foreman\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
11
  "POT-Creation-Date: 2015-12-08 08:56+0000\n"
12
- "PO-Revision-Date: 2015-12-11 09:09+0000\n"
13
- "Last-Translator: Lukáš Zapletal\n"
12
+ "PO-Revision-Date: 2016-02-24 23:02+0000\n"
13
+ "Last-Translator: Bryan Kearney <bryan.kearney@gmail.com>\n"
14
14
  "Language-Team: Korean (http://www.transifex.com/foreman/foreman/language/ko/)\n"
15
15
  "MIME-Version: 1.0\n"
16
16
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -226,7 +226,7 @@ msgstr "버전 표시 "
226
226
 
227
227
  #: ../lib/hammer_cli/main.rb:23
228
228
  msgid "unknown version"
229
- msgstr ""
229
+ msgstr "알 수 없는 버전"
230
230
 
231
231
  #: ../lib/hammer_cli/main.rb:29
232
232
  msgid "Show ids of associated resources"
@@ -7,7 +7,7 @@
7
7
  # eukim <eukim@redhat.com>, 2015. #zanata
8
8
  msgid ""
9
9
  msgstr ""
10
- "Project-Id-Version: hammer-cli 0.4.0\n"
10
+ "Project-Id-Version: hammer-cli 0.6.0\n"
11
11
  "Report-Msgid-Bugs-To: \n"
12
12
  "PO-Revision-Date: 2015-04-28 12:45+0000\n"
13
13
  "Last-Translator: eukim <eukim@redhat.com>\n"
Binary file
@@ -9,7 +9,7 @@
9
9
  # gcintra <gcintra@redhat.com>, 2015. #zanata
10
10
  msgid ""
11
11
  msgstr ""
12
- "Project-Id-Version: hammer-cli 0.4.0\n"
12
+ "Project-Id-Version: hammer-cli 0.6.0\n"
13
13
  "Report-Msgid-Bugs-To: \n"
14
14
  "PO-Revision-Date: 2015-04-27 10:34+0000\n"
15
15
  "Last-Translator: gcintra <gcintra@redhat.com>\n"
Binary file
@@ -11,8 +11,8 @@ msgstr ""
11
11
  "Project-Id-Version: Foreman\n"
12
12
  "Report-Msgid-Bugs-To: \n"
13
13
  "POT-Creation-Date: 2015-12-08 08:56+0000\n"
14
- "PO-Revision-Date: 2015-12-11 09:09+0000\n"
15
- "Last-Translator: Lukáš Zapletal\n"
14
+ "PO-Revision-Date: 2016-02-24 23:02+0000\n"
15
+ "Last-Translator: Bryan Kearney <bryan.kearney@gmail.com>\n"
16
16
  "Language-Team: Russian (http://www.transifex.com/foreman/foreman/language/ru/)\n"
17
17
  "MIME-Version: 1.0\n"
18
18
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -228,7 +228,7 @@ msgstr "показать версию"
228
228
 
229
229
  #: ../lib/hammer_cli/main.rb:23
230
230
  msgid "unknown version"
231
- msgstr ""
231
+ msgstr "неизвестная версия"
232
232
 
233
233
  #: ../lib/hammer_cli/main.rb:29
234
234
  msgid "Show ids of associated resources"
@@ -8,7 +8,7 @@
8
8
  # ypoyarko <ypoyarko@redhat.com>, 2015. #zanata
9
9
  msgid ""
10
10
  msgstr ""
11
- "Project-Id-Version: hammer-cli 0.4.0\n"
11
+ "Project-Id-Version: hammer-cli 0.6.0\n"
12
12
  "Report-Msgid-Bugs-To: \n"
13
13
  "PO-Revision-Date: 2015-04-28 04:41+0000\n"
14
14
  "Last-Translator: ypoyarko <ypoyarko@redhat.com>\n"
Binary file
@@ -9,8 +9,8 @@ msgstr ""
9
9
  "Project-Id-Version: Foreman\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
11
  "POT-Creation-Date: 2015-12-08 08:56+0000\n"
12
- "PO-Revision-Date: 2015-12-11 09:09+0000\n"
13
- "Last-Translator: Lukáš Zapletal\n"
12
+ "PO-Revision-Date: 2016-02-24 23:02+0000\n"
13
+ "Last-Translator: Bryan Kearney <bryan.kearney@gmail.com>\n"
14
14
  "Language-Team: Chinese (China) (http://www.transifex.com/foreman/foreman/language/zh_CN/)\n"
15
15
  "MIME-Version: 1.0\n"
16
16
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -226,7 +226,7 @@ msgstr "显示版本"
226
226
 
227
227
  #: ../lib/hammer_cli/main.rb:23
228
228
  msgid "unknown version"
229
- msgstr ""
229
+ msgstr "未知版本"
230
230
 
231
231
  #: ../lib/hammer_cli/main.rb:29
232
232
  msgid "Show ids of associated resources"
@@ -3,7 +3,7 @@
3
3
  # Leah Liu <lliu@redhat.com>, 2015. #zanata
4
4
  msgid ""
5
5
  msgstr ""
6
- "Project-Id-Version: hammer-cli 0.4.0\n"
6
+ "Project-Id-Version: hammer-cli 0.6.0\n"
7
7
  "Report-Msgid-Bugs-To: \n"
8
8
  "PO-Revision-Date: 2015-04-27 01:22+0000\n"
9
9
  "Last-Translator: Leah Liu <lliu@redhat.com>\n"
Binary file
@@ -9,8 +9,8 @@ msgstr ""
9
9
  "Project-Id-Version: Foreman\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
11
  "POT-Creation-Date: 2015-12-08 08:56+0000\n"
12
- "PO-Revision-Date: 2015-12-11 09:09+0000\n"
13
- "Last-Translator: Lukáš Zapletal\n"
12
+ "PO-Revision-Date: 2016-02-24 23:02+0000\n"
13
+ "Last-Translator: Bryan Kearney <bryan.kearney@gmail.com>\n"
14
14
  "Language-Team: Chinese (Taiwan) (http://www.transifex.com/foreman/foreman/language/zh_TW/)\n"
15
15
  "MIME-Version: 1.0\n"
16
16
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -226,7 +226,7 @@ msgstr "顯示版本"
226
226
 
227
227
  #: ../lib/hammer_cli/main.rb:23
228
228
  msgid "unknown version"
229
- msgstr ""
229
+ msgstr "不明的版本"
230
230
 
231
231
  #: ../lib/hammer_cli/main.rb:29
232
232
  msgid "Show ids of associated resources"
@@ -7,7 +7,7 @@
7
7
  # tchuang <tchuang@redhat.com>, 2015. #zanata
8
8
  msgid ""
9
9
  msgstr ""
10
- "Project-Id-Version: hammer-cli 0.4.0\n"
10
+ "Project-Id-Version: hammer-cli 0.6.0\n"
11
11
  "Report-Msgid-Bugs-To: \n"
12
12
  "PO-Revision-Date: 2015-04-28 05:21+0000\n"
13
13
  "Last-Translator: tchuang <tchuang@redhat.com>\n"
@@ -1,4 +1,5 @@
1
- require File.join(File.dirname(__FILE__), '../unit/test_helper')
1
+ require File.join(File.dirname(__FILE__), './test_helper')
2
+
2
3
  describe 'commands' do
3
4
 
4
5
  class TestProvider < HammerCLI::BaseDefaultsProvider
@@ -14,9 +15,12 @@ describe 'commands' do
14
15
  end
15
16
  end
16
17
 
18
+ let(:defaults_path) { File.join(File.dirname(__FILE__), '../unit/fixtures/defaults/defaults.yml') }
19
+
17
20
  before do
18
- settings = YAML::load(File.open(FILEPATH))
19
- @defaults = HammerCLI::Defaults.new(settings[:defaults], FILEPATH)
21
+ settings = load_yaml(defaults_path)
22
+
23
+ @defaults = HammerCLI::Defaults.new(settings[:defaults], defaults_path)
20
24
  @defaults.stubs(:write_to_file).returns true
21
25
  @defaults.stubs(:providers).returns({ 'foreman' => TestProvider.new() })
22
26
 
@@ -25,15 +29,10 @@ describe 'commands' do
25
29
  }
26
30
  end
27
31
 
28
- def run_cmd(cmd_class, options)
29
- capture_io do
30
- cmd_class.run('hammer', options, @context)
31
- end
32
- end
33
-
34
32
  describe 'defaults list' do
33
+ let(:cmd) { ['defaults', 'list'] }
35
34
 
36
- it 'it prints all defaults' do
35
+ it 'prints all defaults' do
37
36
  header = 'Parameter,Value'
38
37
  default_values = {
39
38
  :organization_id => {
@@ -45,50 +44,67 @@ describe 'commands' do
45
44
  }
46
45
  @defaults.stubs(:defaults_settings).returns(default_values)
47
46
 
48
- out, err = run_cmd(HammerCLI::DefaultsCommand::ListDefaultsCommand, [])
49
- assert_equal "", err
50
- assert_match /PARAMETER[ |]*VALUE/, out
51
- assert_match /organization_id[ |]*3/, out
52
- assert_match /location_id[ |]*Provided by: Hammercliforeman::defaults/, out
47
+ output = IndexMatcher.new([
48
+ ['PARAMETER', 'VALUE'],
49
+ ['organization_id', '3'],
50
+ ['location_id', 'Provided by: Hammercliforeman::defaults']
51
+ ])
52
+ expected_result = success_result(output)
53
+
54
+ result = run_cmd(cmd, @context)
55
+ assert_cmd(expected_result, result)
53
56
  end
54
57
 
55
58
  it 'prints empty defaults' do
56
59
  @defaults.stubs(:defaults_settings).returns({})
57
60
 
58
- out, err = run_cmd(HammerCLI::DefaultsCommand::ListDefaultsCommand, [])
59
- assert_equal "", err
60
- assert_match /PARAMETER[ |]*VALUE/, out
61
+ output = IndexLineMatcher.new(['PARAMETER', 'VALUE'])
62
+ expected_result = success_result(output)
63
+
64
+ result = run_cmd(cmd, @context)
65
+ assert_cmd(expected_result, result)
61
66
  end
62
67
  end
63
68
 
64
69
  describe 'defaults providers' do
65
- header = /PROVIDER[ |]*SUPPORTED DEFAULTS[ |]*DESCRIPTION/
70
+ let(:cmd) { ['defaults', 'providers'] }
71
+ let(:header) { ['PROVIDER', 'SUPPORTED DEFAULTS', 'DESCRIPTION'] }
66
72
 
67
73
  it 'prints all providers and their supported defaults' do
68
- out, err = run_cmd(HammerCLI::DefaultsCommand::ProvidersDefaultsCommand, [])
69
- assert_equal "", err
70
- assert_match header, out
71
- assert_match /foreman[ |]*organization_id[ |]*Descr/, out
74
+ output = IndexMatcher.new([
75
+ header,
76
+ ['foreman', 'organization_id', 'Descr']
77
+ ])
78
+ expected_result = success_result(output)
79
+
80
+ result = run_cmd(cmd, @context)
81
+ assert_cmd(expected_result, result)
72
82
  end
73
83
 
74
84
  it 'prints empty providers' do
75
85
  @defaults.stubs(:providers).returns({})
76
- out, err = run_cmd(HammerCLI::DefaultsCommand::ProvidersDefaultsCommand, [])
77
- assert_equal "", err
78
- assert_match header, out
86
+
87
+ output = IndexLineMatcher.new(header)
88
+ expected_result = success_result(output)
89
+
90
+ result = run_cmd(cmd, @context)
91
+ assert_cmd(expected_result, result)
79
92
  end
80
93
  end
81
94
 
82
95
 
83
96
  describe 'defaults add' do
97
+ let(:cmd) { ['defaults', 'add'] }
98
+
84
99
  it 'adds static default' do
85
100
  options = ['--param-name=param', '--param-value=83']
86
101
 
87
102
  @defaults.expects(:add_defaults_to_conf).with({'param' => '83'}, nil).once
88
103
 
89
- out, err = run_cmd(HammerCLI::DefaultsCommand::AddDefaultsCommand, options)
90
- assert_equal "", err
91
- assert_equal "Added param default-option with value 83.\n", out
104
+ expected_result = success_result("Added param default-option with value 83.\n")
105
+
106
+ result = run_cmd(cmd + options, @context)
107
+ assert_cmd(expected_result, result)
92
108
  end
93
109
 
94
110
  it 'adds default from provider' do
@@ -96,42 +112,50 @@ describe 'commands' do
96
112
 
97
113
  @defaults.expects(:add_defaults_to_conf).with({'organization_id' => nil}, 'foreman').once
98
114
 
99
- out, err = run_cmd(HammerCLI::DefaultsCommand::AddDefaultsCommand, options)
100
- assert_equal "", err
101
- assert_equal "Added organization_id default-option with value that will be generated from the server.\n", out
115
+ expected_result = success_result("Added organization_id default-option with value that will be generated from the server.\n")
116
+
117
+ result = run_cmd(cmd + options, @context)
118
+ assert_cmd(expected_result, result)
102
119
  end
103
120
 
104
121
  it 'reports unsupported option' do
105
122
  options = ['--param-name=unsupported', '--provider=foreman']
106
- out, err = run_cmd(HammerCLI::DefaultsCommand::AddDefaultsCommand, options)
107
- assert_equal "", err
108
- assert_equal "The param name is not supported by provider. See `hammer defaults providers` for supported params.\n", out
123
+ expected_result = success_result("The param name is not supported by provider. See `hammer defaults providers` for supported params.\n")
124
+ expected_result.expected_exit_code = HammerCLI::EX_CONFIG
125
+
126
+ result = run_cmd(cmd + options, @context)
127
+ assert_cmd(expected_result, result)
109
128
  end
110
129
 
111
130
  it 'reports missing parameter name' do
112
131
  options = ['--param-value=83']
113
132
 
114
- out, err = capture_io do
115
- HammerCLI::DefaultsCommand::AddDefaultsCommand.run('hammer', options, @context)
116
- end
117
- assert_match "option '--param-name' is required", err
118
- assert_equal "", out
133
+ expected_result = usage_error_result(cmd, "option '--param-name' is required")
134
+
135
+ result = run_cmd(cmd + options, @context)
136
+ assert_cmd(expected_result, result)
119
137
  end
120
138
 
121
139
  it 'reports missing parameter value or source' do
122
140
  options = ['--param-name=organization_id']
123
141
 
124
- out, err = run_cmd(HammerCLI::DefaultsCommand::AddDefaultsCommand, options)
125
- assert_equal "", err
126
- assert_match "You must specify value or a provider name, cant specify both.", out
142
+ expected_result = CommandExpectation.new("You must specify value or a provider name, cant specify both.\n", "", HammerCLI::EX_USAGE)
143
+
144
+ result = run_cmd(cmd + options, @context)
145
+ assert_cmd(expected_result, result)
127
146
  end
128
147
 
129
148
  it 'reports unknown provider' do
130
149
  options = ['--param-name=organization_id', '--provider=unknown']
131
150
 
132
- out, err = run_cmd(HammerCLI::DefaultsCommand::AddDefaultsCommand, options)
133
- assert_equal "", err
134
- assert_equal "Provider unknown was not found. See `hammer defaults providers` for available providers.\n", out
151
+ expected_result = CommandExpectation.new(
152
+ "Provider unknown was not found. See `hammer defaults providers` for available providers.\n",
153
+ "",
154
+ HammerCLI::EX_USAGE
155
+ )
156
+
157
+ result = run_cmd(cmd + options, @context)
158
+ assert_cmd(expected_result, result)
135
159
  end
136
160
 
137
161
  it 'reports IO errors' do
@@ -139,13 +163,16 @@ describe 'commands' do
139
163
 
140
164
  @defaults.expects(:add_defaults_to_conf).raises(Errno::ENOENT, '/unknown/path')
141
165
 
142
- out, err = run_cmd(HammerCLI::DefaultsCommand::AddDefaultsCommand, options)
143
- assert_equal "", err
144
- assert_equal "No such file or directory - /unknown/path\n", out
166
+ expected_result = CommandExpectation.new("No such file or directory - /unknown/path\n", "", HammerCLI::EX_CONFIG)
167
+
168
+ result = run_cmd(cmd + options, @context)
169
+ assert_cmd(expected_result, result)
145
170
  end
146
171
  end
147
172
 
148
173
  describe 'defaults delete' do
174
+ let(:cmd) { ['defaults', 'delete'] }
175
+
149
176
  it 'removes the defaults' do
150
177
  default_values = {
151
178
  :organization_id => {
@@ -158,9 +185,10 @@ describe 'commands' do
158
185
 
159
186
  options = ['--param-name=organization_id']
160
187
 
161
- out, err = run_cmd(HammerCLI::DefaultsCommand::DeleteDefaultsCommand, options)
162
- assert_equal "", err
163
- assert_equal "organization_id was deleted successfully.\n", out
188
+ expected_result = success_result("organization_id was deleted successfully.\n")
189
+
190
+ result = run_cmd(cmd + options, @context)
191
+ assert_cmd(expected_result, result)
164
192
  end
165
193
 
166
194
  it 'reports when the variable was not found' do
@@ -168,9 +196,11 @@ describe 'commands' do
168
196
  @defaults.stubs(:path).returns('/path/to/defaults.yml')
169
197
 
170
198
  options = ['--param-name=organization_id']
171
- out, err = run_cmd(HammerCLI::DefaultsCommand::DeleteDefaultsCommand, options)
172
- assert_equal "", err
173
- assert_equal "Couldn't find the requested param in /path/to/defaults.yml.\n", out
199
+
200
+ expected_result = success_result("Couldn't find the requested param in /path/to/defaults.yml.\n")
201
+
202
+ result = run_cmd(cmd + options, @context)
203
+ assert_cmd(expected_result, result)
174
204
  end
175
205
  end
176
206
 
@@ -0,0 +1,9 @@
1
+ require File.join(File.dirname(__FILE__), '../test_helper')
2
+
3
+ require 'hammer_cli/testing/output_matchers'
4
+ require 'hammer_cli/testing/command_assertions'
5
+ require 'hammer_cli/testing/data_helpers'
6
+
7
+ include HammerCLI::Testing::OutputMatchers
8
+ include HammerCLI::Testing::CommandAssertions
9
+ include HammerCLI::Testing::DataHelpers
@@ -1,5 +1,5 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <testsuite name="Fields::ContainerField::display?" tests="0" time="0.000323308" failures="0" errors="0" skipped="0" assertions="0" timestamp="2015-12-10T23:59:29+00:00">
2
+ <testsuite name="Fields::ContainerField::display?" tests="0" time="0.000195743" failures="0" errors="0" skipped="0" assertions="0">
3
3
  <system-out>
4
4
  </system-out>
5
5
  <system-err>