Sha256: 51ecc8c1e058d6e87806a4f3a9af1a10e2dd1041995e1641fe8b330fba72a9c8
Contents?: true
Size: 366 Bytes
Versions: 6
Compression:
Stored size: 366 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' def app SlackRubyBotServer::Api::Middleware.instance end describe 'API' do include Rack::Test::Methods it 'root' do get '/api' expect(last_response.status).to eq 200 links = JSON.parse(last_response.body)['_links'] expect(links.keys.sort).to eq(%w[self status team teams].sort) end end
Version data entries
6 entries across 3 versions & 1 rubygems