Sha256: 46ee45abbc85edacf6eb66e1cf21dfb5fa62b623599a68c4a12478a5ecd8a0f4

Contents?: true

Size: 389 Bytes

Versions: 62

Compression:

Stored size: 389 Bytes

Contents

require 'test_helper'

module Workarea
  class IndexHelpTest < Workarea::TestCase
    include TestCase::SearchIndexing

    def test_article_indexing
      article = create_help_article

      IndexHelp.new.perform(article.id)
      assert_equal(Search::Help.count, 1)

      article.destroy
      IndexHelp.new.perform(article.id)
      assert(Search::Help.count.zero?)
    end
  end
end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
workarea-core-3.4.13 test/workers/workarea/index_help_test.rb
workarea-core-3.4.12 test/workers/workarea/index_help_test.rb