Skip to content

Commit 41b0ed6

Browse files
committed
Add integration test for customization of options and faces
1 parent 6e06449 commit 41b0ed6

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed

features/emacs-fireplace.feature

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,23 @@ Feature: Putting Emacs on Fire
88
Then there is a "*fireplace*" buffer
99

1010

11-
Scenario: Turn on the fire and then off
11+
Scenario: Turn on the fire and then off
1212
When I call "fireplace"
1313
And I call "fireplace-off"
1414
Then I should be in buffer "*scratch*"
15+
16+
Scenario: I can customize general setting
17+
When I try to configure "fireplace"
18+
Then I should be in buffer "*Customize Group: Fireplace*"
19+
And I should see "Fireplace Background Char"
20+
And I should see "Fireplace Buffer Name"
21+
And I should see "Fireplace Fury"
22+
And I should see "Fireplace Smoke Char"
23+
24+
25+
Scenario: I can customize faces
26+
When I try to configure "fireplace-faces"
27+
Then I should be in buffer "*Customize Group: Fireplace Faces*"
28+
And I should see "Fireplace Inner Flame Face"
29+
And I should see "Fireplace Outter Flame Face"
30+
And I should see "Fireplace Smoke Face"

features/step-definitions/emacs-fireplace-steps.el

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
;; files in this directory whose names end with "-steps.el" will be
33
;; loaded automatically by Ecukes.
44

5+
(When "^I try to configure \"\\([^\"]+\\)\"$"
6+
(lambda (group)
7+
(shut-up
8+
(customize-group group))))
9+
510
(Then "^there is a \"\\([^\"]+\\)\" buffer$"
611
(lambda (buffer-name)
712
(get-buffer buffer-name)))

fireplace.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
:type 'string :group 'fireplace)
6464

6565
;;; Faces
66-
(defgroup fireplace-face nil
66+
(defgroup fireplace-faces nil
6767
"Faces for `fireplace'."
6868
:group 'fireplace)
6969

0 commit comments

Comments
 (0)