rootstrap/rails_api_base

View on GitHub
spec/requests/api/v1/status_spec.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

require 'rails_helper'

describe 'GET api/v1/status' do
  before do
    get api_v1_status_path
  end

  it 'returns status 200 ok' do
    expect(response).to be_successful
  end

  it 'returns the api status' do
    expect(json['online']).to be true
  end
end