Skip to content

Commit f5ab3d7

Browse files
committed
Fixes #38788 - Adjust tests to newer scoped_search
1 parent a781900 commit f5ab3d7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ gem 'rest-client', '>= 2.0.0', '< 3', :require => 'rest_client'
88
gem 'audited', '~> 5.0', '!= 5.1.0'
99
gem 'will_paginate', '~> 3.3'
1010
gem 'ancestry', '~> 4.0'
11-
gem 'scoped_search', '>= 4.1.10', '< 5'
11+
gem 'scoped_search', '>= 4.3.1', '< 5'
1212
gem 'ldap_fluff', '>= 0.9.0', '< 1.0'
1313
gem 'apipie-rails', '>= 0.8.0', '< 2'
1414
gem 'apipie-dsl', '>= 2.6.2'

test/controllers/concerns/auto_complete_search_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ class AutoCompleteSearchTest < ActionController::TestCase
1313
assert_predicate response, :successful?
1414
suggestions = ActiveSupport::JSON.decode(response.body)
1515
assert_equal 1, suggestions.length
16-
assert_equal suggestions.first['part'], "name = #{domain1.name}"
16+
assert_equal suggestions.first['label'], "name = \"#{domain1.name}\""
1717
end
1818
end

test/models/concerns/audit_search_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def setup
1111
end
1212

1313
test "host autocomplete works in audit search" do
14-
FactoryBot.create(:host, :managed)
14+
FactoryBot.create(:host, :managed, :with_auditing)
1515
hosts = Audit.complete_for("host = ", {:controller => 'audits'})
1616
assert hosts.count > 0
1717
end

0 commit comments

Comments
 (0)