Skip to content

Commit

Permalink
Merge branch 'new-steps'
Browse files Browse the repository at this point in the history
  • Loading branch information
rejeep committed Jun 4, 2015
2 parents f284730 + 5460fc1 commit d774c90
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions espuds.el
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,11 @@ The value of the face PROPERTY must be one of VALID-VALUES."
(execute-kbd-macro espuds-action-chain)
(setq espuds-chain-active nil)))

(When "^I call \"\\(.+\\)\"$"
"Call the provided COMMAND"
(lambda (command)
(call-interactively (intern command))))

(When "^I press \"\\(.+\\)\"$"
"Execute the function that KEYBINDING is bound to.
Expand Down
6 changes: 6 additions & 0 deletions test/espuds-test.el
Original file line number Diff line number Diff line change
Expand Up @@ -875,3 +875,9 @@
(should (equal 2 (count-windows)))
(When "I delete other windows")
(should (equal 1 (count-windows)))))

(ert-deftest when-i-call-a-command ()
"Invoke specified command."
(with-playground
(When "I call \"insert-parentheses\"")
(should (equal (buffer-string) "()"))))

0 comments on commit d774c90

Please sign in to comment.