Skip to content
Browse files
Toggle deferred without moving point.
  • Loading branch information
magnars committed Jun 16, 2012
1 parent e83c319 commit 6fb1cf170dd361a5e814a14bc8054c5b182e1999
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
@@ -3,11 +3,12 @@

(defun buster-toggle-deffered ()
(forward-char 1)
(if (looking-at "//")
(delete-char 2)
(insert "//")))
(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.