diff options
author | Ola Nilsson <ola.nilsson@gmail.com> | 2018-08-28 21:45:07 +0200 |
---|---|---|
committer | Ola Nilsson <ola.nilsson@gmail.com> | 2018-08-28 22:51:09 +0200 |
commit | 553529f1877209772e2026b1fe0a87a2830b1aaa (patch) | |
tree | fa0d217e9c5ec2dba9c70690a3a3f0b1d67f1ca9 | |
parent | f57036fdcc9337eccfdcb4e5ebc8c973863149e8 (diff) |
Remove obsolete buttercup-xdescribe
buttercup-xdescribe is no longer used by the xdescribe macro.
-rw-r--r-- | buttercup.el | 12 | ||||
-rw-r--r-- | tests/test-buttercup.el | 18 |
2 files changed, 0 insertions, 30 deletions
diff --git a/buttercup.el b/buttercup.el index 80380fc..7a9e4a3 100644 --- a/buttercup.el +++ b/buttercup.el @@ -965,18 +965,6 @@ mainly calls to `describe', `it' and `before-each'." ;; make sure the suite is marked as pending (signal 'buttercup-pending "PENDING"))) -(defun buttercup-xdescribe (description function) - "Like `buttercup-describe', but mark the suite as disabled. - -A disabled suite is not run. - -DESCRIPTION has the same meaning as in `xdescribe'. FUNCTION -is ignored. -`describe'." - (ignore function) - (buttercup-describe description (lambda () - (signal 'buttercup-pending "PENDING")))) - ;;;;;;;;;;;;;;;;;;;;;; ;;; Pending Specs: xit diff --git a/tests/test-buttercup.el b/tests/test-buttercup.el index 94f3ad3..d7ff1d9 100644 --- a/tests/test-buttercup.el +++ b/tests/test-buttercup.el @@ -497,24 +497,6 @@ :to-be 'pending)))) - -(describe "The `buttercup-xdescribe' function" - (it "should be a no-op" - (expect (buttercup-xdescribe - "bla bla" - (lambda () (error "Should not happen"))) - :not :to-throw)) - - (it "should add a pending suite" - (let ((buttercup--current-suite nil) - (buttercup-suites nil)) - (buttercup-xdescribe - "bla bla" - (lambda () nil)) - (expect (buttercup-suite-status (car buttercup-suites)) - :to-be - 'pending)))) - ;;;;;;;;;;;;;;;;;;;;;; ;;; Pending Specs: xit |