elasticsearch_test.rb 423 Bytes
require "#{File.dirname(__FILE__)}/../test_helper"

class ElasticsearchTest < ActiveSupport::TestCase
  def setup
    @environment = Environment.default
    @environment.enable_plugin(ElasticsearchPlugin)
    @profile = create_user('testing').person
  end


  should 'be return yellow for health status' do
      cluster = Elasticsearch::Model.client.cluster
      assert_equal 'yellow', cluster.health["status"]
  end
end