blob: fc5bbd00bb2a55f6cb80cb441f83ee2e0a3872d6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
# frozen_string_literal: true
require 'rails_helper'
RSpec.describe 'GET /api/companies/:short_name', type: :request do
it_behaves_like 'a GET resource request' do
let(:headers) { {} }
let(:company) { create(:company) }
let(:route) { "/api/companies/#{company.short_name}" }
let(:invalid_route) { "/api/companies/#{Faker::Lorem.word}" }
let(:expected_text) { [company.name, company.id.to_s, company.short_name, company.country] }
end
end
|