Sha256: 5098a7de451495d9606e733732275b4c6a63780a00a76e93e91f1852d1c50944
Contents?: true
Size: 1003 Bytes
Versions: 16
Compression:
Stored size: 1003 Bytes
Contents
require 'rails_helper' module MnoEnterprise describe StatusController, type: :controller do routes { MnoEnterprise::Engine.routes } describe 'GET #ping' do before { get :ping } it { is_expected.to respond_with(200) } it { expect(response.body).to eq({status: 'Ok'}.to_json) } end describe 'GET #version' do before { get :version } let(:data) { JSON.parse(response.body) } it { is_expected.to respond_with(200) } it 'returns the main app version' do puts MnoEnterprise::APP_VERSION expect(data['app-version']).to eq(MnoEnterprise::APP_VERSION) end it 'returns the mnoe-version' do expect(data['mno-enteprise-version']).to eq(MnoEnterprise::VERSION) end it 'returns the environment' do expect(data['env']).to eq('test') end it 'returns the mno-api-host' do expect(data['mno-api-host']).to eq('https://api-enterprise.maestrano.com') end end end end
Version data entries
16 entries across 16 versions & 1 rubygems