Sha256: 4b7ab4508a0b68a6da4be515fb0b81513cf3aad1867f8dbe1da8755643251125
Contents?: true
Size: 635 Bytes
Versions: 1
Compression:
Stored size: 635 Bytes
Contents
require 'spec_helper' # # Specs for returned data for /_status/* endpoints. # # Endpoint checks (i.e. check HTTP success) are in endpoints_spec.rb describe Nagira do set :environment, ENV['RACK_ENV'] || :test include Rack::Test::Methods def app @app ||= Nagira end before :all do get "/_status/_list.json" @host = JSON.parse(last_response.body).first end context "/_hosts/:host/_services" do before :each do get "/_status/#{@host}/_services" @data = JSON.parse(last_response.body) end it "return services list " do expect(@data).to be_a_kind_of Hash end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nagira-0.4.0 | spec/get/services_spec.rb |