You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: search_settings_integration_test.rb
    path of file: ./repos/workarea/admin/test/integration/workarea/admin
    
    the code of the file until where you have to start completion: require 'test_helper'

module Workarea
  module Admin
    class SearchSettingsIntegrationTest < Workarea::IntegrationTest
      include Admin::IntegrationTest

      def test_can_create_an_asset
        patch admin.search_settings_path,
          params: {
            synonyms: 'foo, bar',
            boo
    
      def test_retains_settings_when_partially_updated
        settings = Search::Settings.current
        terms_facets = %w[color size material]
        range_facets = {
          'price' => [
            { 'from' => '', 'to' => '9.99' },
            { 'from' => '10', 'to' => '' }
          ]
        }

        settings.update!(
          terms_facets: terms_facets,
          range_facets: range_facets
        )
        patch admin.search_settings_path,
          params: {
            settings: {
              synonyms: 'foo, bar, baz'
            }
          }

        assert_equal('foo, bar, baz', settings.reload.synonyms)
        assert_equal(terms_facets, settings.terms_facets)
        assert_equal(range_facets, settings.range_facets)
      end