Permalink
Browse files

Toggle deferred without moving point.

  • Loading branch information...
magnars committed Jun 16, 2012
1 parent e83c319 commit 6fb1cf170dd361a5e814a14bc8054c5b182e1999
Showing with 8 additions and 6 deletions.
  1. +6 −5 buster-mode.el
  2. +2 −1 features/buster-mode.feature
View
@@ -3,11 +3,12 @@
(defun buster-toggle-deffered ()
(interactive)
(buster-goto-current-test)
(forward-char 1)
(if (looking-at "//")
(delete-char 2)
(insert "//")))
(save-excursion
(buster-goto-current-test)
(forward-char 1)
(if (looking-at "//")
(delete-char 2)
(insert "//"))))
(defvar buster-mode-map (make-sparse-keymap)
"buster-mode keymap")
@@ -3,7 +3,7 @@ Feature: Toggle deferred
As a buster using emacs user
I want to just press key please
Scenario: Deferring a test
Scenario: Attempting to defer test outside buster-mode
When I insert:
"""
buster.testCase('Building Page', {
@@ -29,6 +29,7 @@ Feature: Toggle deferred
And I go to the front of the word "assert"
And I press "C-c C-b td"
Then I should see "//contains"
And the cursor should be before "assert"
Scenario: Undeferring a test
When I insert:

0 comments on commit 6fb1cf1

Please sign in to comment.