Sha256: 0a283741634f0ccb3b19d1b12716943cf9831c743333aef6acafcda0c2c34b57
Contents?: true
Size: 870 Bytes
Versions: 12
Compression:
Stored size: 870 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 end end end
Version data entries
12 entries across 12 versions & 1 rubygems