summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorAlfredo Sumaran <alfredo@gitlab.com>2017-03-08 08:02:42 +0000
committerAlfredo Sumaran <alfredo@gitlab.com>2017-03-08 08:02:42 +0000
commitbd1d778168513e3889df877911589a371277e076 (patch)
tree239fc5cffa96bf53f60b991b861384ee05baa69a /spec
parentcb19fd140fda6fd8adc05a00889e7567cabcaa62 (diff)
parentaf178560c050518c2a1aa8aea0357faafb35377e (diff)
downloadgitlab-ce-bd1d778168513e3889df877911589a371277e076.tar.gz
Merge branch 'filtered-search-visual-tokens-improvements' into 'master'
Filtered Search Visual Tokens code improvements See merge request !9781
Diffstat (limited to 'spec')
-rw-r--r--spec/features/issues/filtered_search/filter_issues_spec.rb4
-rw-r--r--spec/features/merge_requests/filter_by_labels_spec.rb2
2 files changed, 3 insertions, 3 deletions
diff --git a/spec/features/issues/filtered_search/filter_issues_spec.rb b/spec/features/issues/filtered_search/filter_issues_spec.rb
index 35bd37933bc..f079a9627e4 100644
--- a/spec/features/issues/filtered_search/filter_issues_spec.rb
+++ b/spec/features/issues/filtered_search/filter_issues_spec.rb
@@ -112,7 +112,7 @@ describe 'Filter issues', js: true, feature: true do
end
context 'author with other filters' do
- search_term = 'issue'
+ let(:search_term) { 'issue' }
it 'filters issues by searched author and text' do
input_filtered_search("author:@#{user.username} #{search_term}")
@@ -536,7 +536,7 @@ describe 'Filter issues', js: true, feature: true do
end
context 'milestone with other filters' do
- search_term = 'bug'
+ let(:search_term) { 'bug' }
it 'filters issues by searched milestone and text' do
input_filtered_search("milestone:%#{milestone.title} #{search_term}")
diff --git a/spec/features/merge_requests/filter_by_labels_spec.rb b/spec/features/merge_requests/filter_by_labels_spec.rb
index 5ba9743e926..55f3c1863ff 100644
--- a/spec/features/merge_requests/filter_by_labels_spec.rb
+++ b/spec/features/merge_requests/filter_by_labels_spec.rb
@@ -70,7 +70,7 @@ feature 'Issue filtering by Labels', feature: true, js: true do
context 'filter by label enhancement and bug in issues list' do
before do
- input_filtered_search('label:~bug label:~enhancement ')
+ input_filtered_search('label:~bug label:~enhancement')
end
it 'applies the filters' do