Sha256: 91834272eed23d4483086e19fef01166d4fb55e0dee0d697627544ffbf088497

Contents?: true

Size: 335 Bytes

Versions: 26

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

26 entries across 13 versions & 1 rubygems

Version Path
slack-ruby-bot-server-0.12.3 sample_apps/sample_app_activerecord/spec/api/root_spec.rb
slack-ruby-bot-server-0.12.3 sample_apps/sample_app_mongoid/spec/api/root_spec.rb
slack-ruby-bot-server-0.12.2 sample_apps/sample_app_mongoid/spec/api/root_spec.rb
slack-ruby-bot-server-0.12.2 sample_apps/sample_app_activerecord/spec/api/root_spec.rb
slack-ruby-bot-server-0.12.1 sample_apps/sample_app_activerecord/spec/api/root_spec.rb
slack-ruby-bot-server-0.12.1 sample_apps/sample_app_mongoid/spec/api/root_spec.rb
slack-ruby-bot-server-0.12.0 sample_apps/sample_app_activerecord/spec/api/root_spec.rb
slack-ruby-bot-server-0.12.0 sample_apps/sample_app_mongoid/spec/api/root_spec.rb
slack-ruby-bot-server-0.11.1 sample_apps/sample_app_activerecord/spec/api/root_spec.rb
slack-ruby-bot-server-0.11.1 sample_apps/sample_app_mongoid/spec/api/root_spec.rb
slack-ruby-bot-server-0.11.0 sample_apps/sample_app_activerecord/spec/api/root_spec.rb
slack-ruby-bot-server-0.11.0 sample_apps/sample_app_mongoid/spec/api/root_spec.rb
slack-ruby-bot-server-0.10.0 sample_apps/sample_app_activerecord/spec/api/root_spec.rb
slack-ruby-bot-server-0.10.0 sample_apps/sample_app_mongoid/spec/api/root_spec.rb
slack-ruby-bot-server-0.9.0 sample_apps/sample_app_mongoid/spec/api/root_spec.rb
slack-ruby-bot-server-0.9.0 sample_apps/sample_app_activerecord/spec/api/root_spec.rb
slack-ruby-bot-server-0.8.3 sample_apps/sample_app_activerecord/spec/api/root_spec.rb
slack-ruby-bot-server-0.8.3 sample_apps/sample_app_mongoid/spec/api/root_spec.rb
slack-ruby-bot-server-0.8.2 sample_apps/sample_app_activerecord/spec/api/root_spec.rb
slack-ruby-bot-server-0.8.2 sample_apps/sample_app_mongoid/spec/api/root_spec.rb