Permalink
Browse files

Support hipster quotes.

  • Loading branch information...
magnars committed Jun 16, 2012
1 parent b4a79c4 commit f3fe2dd27de09f80fb71180e8497f5777b21a7fe
Showing with 16 additions and 3 deletions.
  1. +3 −3 buster-mode.el
  2. +13 −0 features/buster-mode.feature
View
@@ -1,9 +1,9 @@
(defun buster-go-to-current-test ()
(search-backward-regexp "\"[^ ]* .+\": function"))
(defun buster-goto-current-test ()
(search-backward-regexp "[\"'][^ ]* .+[\"']: function" nil t))
(defun buster-toggle-deffered ()
(interactive)
(buster-go-to-current-test)
(buster-goto-current-test)
(forward-char 1)
(if (looking-at "//")
(delete-char 2)
@@ -28,3 +28,16 @@ Feature: Toggle deferred
And I go to the front of the word "assert"
And I press "C-c C-b td"
Then I should not see "//contains"
Scenario: Deferring a single quoted test
When I insert:
"""
buster.testCase('Building Page', {
'contains title after loading page': function () {
assert.match(document.body.innerHTML, "Zombie TDD");
}
});
"""
And I go to the front of the word "assert"
And I press "C-c C-b td"
Then I should see "'//contains"

0 comments on commit f3fe2dd

Please sign in to comment.