diff --git a/tests/modules/programs/rofi/config-with-deprecated-options.nix b/tests/modules/programs/rofi/config-with-deprecated-options.nix new file mode 100644 index 00000000..b77c5ac9 --- /dev/null +++ b/tests/modules/programs/rofi/config-with-deprecated-options.nix @@ -0,0 +1,17 @@ +{ ... }: + +{ + programs.rofi = { + enable = true; + colors = { }; + }; + + test.stubs.rofi = { }; + test.asserts.assertions.expected = [ + (let offendingFile = toString ./config-with-deprecated-options.nix; + in '' + The option definition `programs.rofi.colors' in `${offendingFile}' no longer has any effect; please remove it. + Please use a Rofi theme instead. + '') + ]; +} diff --git a/tests/modules/programs/rofi/default.nix b/tests/modules/programs/rofi/default.nix index f0aed095..2f8c0a95 100644 --- a/tests/modules/programs/rofi/default.nix +++ b/tests/modules/programs/rofi/default.nix @@ -1,4 +1,5 @@ { rofi-valid-config = ./valid-config.nix; rofi-custom-theme = ./custom-theme.nix; + rofi-config-with-deprecated-options = ./config-with-deprecated-options.nix; }