Skip to content

Commit

Permalink
Add ecukes integration test for completing overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
mikavilpas committed Nov 25, 2014
1 parent a9ed181 commit 0978c35
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
28 changes: 28 additions & 0 deletions features/complete-overrides.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
Feature: Complete overrides

Background:
Given I open temp file "some-file.cs"
Given The buffer is empty

Scenario: Complete overrides in the current buffer with ido
When My buffer contents are, and my point is at $:
"""
namespace Test {
public class Awesome {
$
}
}
"""
Given I start an action chain
And I press "M-x"
And I type "omnisharp-auto-complete-overrides"
# Finish M-x
And I press "RET"
# Select the first proposed override
And I press "RET"
And I execute the action chain

Then I should see, ignoring line endings:
"""
public override bool Equals(object obj)
"""
4 changes: 2 additions & 2 deletions omnisharp.el
Original file line number Diff line number Diff line change
Expand Up @@ -981,8 +981,8 @@ omnisharp--last-buffer-specific-auto-complete-result."

(defun omnisharp-auto-complete-overrides ()
(interactive)
(let ((params (omnisharp--get-common-params)))
(omnisharp-auto-complete-overrides-worker params)))
(omnisharp-auto-complete-overrides-worker
(omnisharp--get-common-params)))

(defun omnisharp-auto-complete-overrides-worker (params)
(let* ((json-result
Expand Down

0 comments on commit 0978c35

Please sign in to comment.