Sha256: 1b9128d3fe4296c441fcba09945e6ba90bb6d07f3730ca09a5d02f2ca5ff83b4

Contents?: true

Size: 424 Bytes

Versions: 1

Compression:

Stored size: 424 Bytes

Contents

require 'spec_helper'

describe Nagira do

  include Rack::Test::Methods
  def app
    @app ||= Nagira
  end

  context "GET /_hosts" do

    before :each do
      get "/_status/_list"
      @data = JSON.parse(last_response.body)
    end

    it "return hosts list " do
        expect(@data).to be_a_kind_of Array
    end

    it "hostname is a string" do
      expect(@data.first).to be_a_kind_of String
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nagira-0.5.2 spec/get/status/hosts_spec.rb