Sha256: 3372c316e6b508dea7a8e92e9240c55cfe00a8ed2354115e2e57ec7657e91da3

Contents?: true

Size: 335 Bytes

Versions: 4

Compression:

Stored size: 335 Bytes

Contents

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

4 entries across 2 versions & 1 rubygems

Version Path
slack-ruby-bot-server-0.6.1 sample_apps/sample_app_activerecord/spec/api/root_spec.rb
slack-ruby-bot-server-0.6.1 sample_apps/sample_app_mongoid/spec/api/root_spec.rb
slack-ruby-bot-server-0.6.0 sample_apps/sample_app_activerecord/spec/api/root_spec.rb
slack-ruby-bot-server-0.6.0 sample_apps/sample_app_mongoid/spec/api/root_spec.rb