Skip to content

Commit a90ecec

Browse files
dgtizedvemv
authored andcommitted
Add ecukes steps to set the defcustom for each buffer
1 parent 05e90bd commit a90ecec

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

features/magic-requires-in-cljc-files.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Given I have a project "cljr" in "tmp"
33
And I have a clojure-file "tmp/src/cljr/core.cljc"
44
And I open file "tmp/src/cljr/core.cljc"
5+
And the `cljr-slash-uses-suggest-libspec' flag is disabled
56
And I clear the buffer
67

78
Scenario: Does the right thing when facing clj reader conditionals

features/magic-requires.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Feature: Magic requires
44
Given I have a project "cljr" in "tmp"
55
And I have a clojure-file "tmp/src/cljr/core.clj"
66
And I open file "tmp/src/cljr/core.clj"
7+
And the `cljr-slash-uses-suggest-libspec' flag is disabled
78
And I clear the buffer
89

910
Scenario: Require is inserted automagically

features/step-definitions/clj-refactor-steps.el

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,11 @@
408408
(cljr--change-function-signature (list (cljr--plist-to-hash (cl-second cljr--test-occurrences)))
409409
cljr--baz-renamed-to-qux))))
410410

411+
;; TODO: deprecate dependent tests after `cljr-slash-uses-suggest-libspec' is the only path.
412+
(Given "The `cljr-slash-uses-suggest-libspec' flag is disabled"
413+
(lambda ()
414+
(setq-local cljr-slash-uses-suggest-libspec nil)))
415+
411416
(Given "The cache of namespace aliases is populated"
412417
(lambda ()
413418
(defun cljr--call-middleware-for-namespace-aliases ()

0 commit comments

Comments
 (0)