ref: master
plugins/elasticsearch/test/unit/elasticsearch_test.rb
1 2 3 4 5 6 7 8 9
require_relative '../test_helper' class ElasticsearchTest < ActionController::TestCase should 'be return yellow for health status' do cluster = Elasticsearch::Model.client.cluster assert_equal 'yellow', cluster.health["status"] end end