Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 87938bf

Browse files
committed
Prevent search results from being ignored in specs
As of atom/scandal#40, VCS ignores are respected even when the the project path is a subdirectory of the repository path. This means that if the tests are run from the `atom/node_modules` folder, atom's .gitignore will cause all results in the package directory to be ignored. Thus, we disable `excludeVcsIgnores` in the specs.
1 parent 24f6738 commit 87938bf

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

spec/project-find-view-spec.coffee

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ describe 'ProjectFindView', ->
2424

2525
beforeEach ->
2626
workspaceElement = atom.views.getView(atom.workspace)
27+
atom.config.set('core.excludeVcsIgnores', false)
2728
atom.project.setPaths([path.join(__dirname, 'fixtures')])
2829
jasmine.attachToDOM(workspaceElement)
2930

spec/results-model-spec.coffee

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ describe 'ResultsModel', ->
1010
[editor, searchPromise, resultsModel, searchPromise] = []
1111

1212
beforeEach ->
13+
atom.config.set('core.excludeVcsIgnores', false)
1314
atom.project.setPaths([path.join(__dirname, 'fixtures')])
1415

1516
waitsForPromise ->

spec/results-view-spec.coffee

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ describe 'ResultsView', ->
2424
workspaceElement = atom.views.getView(atom.workspace)
2525
workspaceElement.style.height = '1000px'
2626
jasmine.attachToDOM(workspaceElement)
27+
atom.config.set('core.excludeVcsIgnores', false)
2728
atom.project.setPaths([path.join(__dirname, 'fixtures')])
2829
promise = atom.packages.activatePackage("find-and-replace").then ({mainModule}) ->
2930
mainModule.createViews()

0 commit comments

Comments
 (0)