Skip to content

Instantly share code, notes, and snippets.

@magnars
Created July 18, 2012 08:46
Show Gist options
  • Save magnars/3135102 to your computer and use it in GitHub Desktop.
Save magnars/3135102 to your computer and use it in GitHub Desktop.
Overlays not working in ecukes
5487177 04/30/13 09:37 public
5057886 02/28/13 17:15 public
4771940 02/12/13 19:12 public
4328055 12/18/12 14:42 public
+ 4e8ae71... 12/12/12 11:51 public
4141489 11/24/12 22:35 public Emacs bot til Kodemakers irc-kanal
+ 4116916 11/20/12 10:20 public Project specific settings in Emacs
eea74d7... 11/16/12 20:53 public
+ a305a6c... 11/15/12 09:28 public introduce-parameter
4060654 11/12/12 18:23 public Hippie Expand: use closest matches first
98ebb00... 11/05/12 09:30 public Julekalenderblogpost
3932867 10/22/12 19:39 public
3878594 10/12/12 12:27 public create-scratch-buffer
3773499 09/24/12 02:02 public Add spaces and proper formatting to linum-mode.
3292872 08/08/12 08:42 public Emacs: Show line numbers temporarily, while prompting for the line number input
3178597 07/25/12 22:50 public Saner magit quit
3155433 07/21/12 12:58 public Closing *Completion* buffer easily
+ 3135102 07/18/12 10:46 public Overlays not working in ecukes
3129270 07/17/12 15:03 public
3129159 07/17/12 14:28 public Inverse of C-k
3048595 07/04/12 19:57 public cleanup-buffer.el
2868250 06/04/12 15:06 public accumulate-forces
+ 2426786 04/20/12 09:12 public Keep session alive
2360578 04/11/12 19:05 public ido-imenu as used in Emacs Rocks #10
2350388 04/10/12 12:50 public Push mark when using ido-imenu
1892749 02/23/12 14:19 public Hvis bare utviklerne
1705973 01/30/12 19:57 public push-mark not behaving as expected
1671918 01/24/12 20:05 public Advice ignored
+ 1505658 12/21/11 12:12 public Using PeepOpen with Cocoa Emacs
+ 1001874 06/01/11 08:24 public Reporting too few assertions?
959600 05/06/11 21:20 public Show time since last commit and branch name in prompt
(When "^I add an overlay with type \"\\(.+\\)\"$"
(lambda (type)
(overlay-put (make-overlay 1 1 nil nil t)
'type (intern type))))
(Then "^I should have \\([0-9]+\\) overlays? with type \"\\(.+\\)\"$"
(lambda (num type)
(let ((actual (count-if (lambda (o) (eq (overlay-get o 'type) (intern type)))
(overlays-in (point-min) (point-max)))))
(assert (eq (string-to-number num) actual) nil
"Expected to have %s overlays with type %S, but was %d"
num type actual))))
Feature: Overlays working properly
In order to test multiple-cursors
As an emacs enthusiast
I want to verify overlays with ecukes
Scenario: Create an overlay and verify its properties
When I add an overlay with type "my-type"
Then I should have 1 overlay with type "my-type"
➜ ecukes-overlay git:(master) ✗ util/ecukes/ecukes
Feature: Overlays working properly
In order to test multiple-cursors
As an emacs enthusiast
I want to verify overlays with ecukes
Scenario: Create an overlay and verify its properties
When I add an overlay with type "my-type"
Then I should have 1 overlay with type "my-type"
Expected to have 1 overlays with type "my-type", but was 0
1 scenarios (1 failed, 0 passed)
2 steps (1 failed, 0 skipped, 1 passed)
➜ ecukes-overlay git:(master) ✗ util/ecukes/ecukes --graphical
Feature: Overlays working properly
In order to test multiple-cursors
As an emacs enthusiast
I want to verify overlays with ecukes
Scenario: Create an overlay and verify its properties
When I add an overlay with type "my-type"
Then I should have 1 overlay with type "my-type"
Expected to have 1 overlays with type "my-type", but was 0
1 scenarios (1 failed, 0 passed)
2 steps (1 failed, 0 skipped, 1 passed)
➜ ecukes-overlay git:(master) ✗
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment