RSpec.describe 'Accepted format', type: :request do
  context 'requesting a resource with no specified format' do
    it 'returns a 200 response status' do
      get '/pension-types'

      expect(response.status).to eq(200)
    end
  end

  context 'requesting a HTML formatted resource' do
    it 'returns a 200 response status' do
      get '/pension-types.html'

      expect(response.status).to eq(200)
    end
  end

  context 'requesting a ZIP formatted resource' do
    it 'returns a 404 response status' do
      get '/pension-types.zip'

      expect(response.status).to eq(404)
    end
  end
end

RSpec.describe 'Accepted format', type: :request do
  context 'requesting a resource with no specified format' do
    it 'returns a 200 response status' do
      get '/pension-types'

      expect(response.status).to eq(200)
    end
  end

  context 'requesting a HTML formatted resource' do
    it 'returns a 200 response status' do
      get '/pension-types.html'

      expect(response.status).to eq(200)
    end
  end
end

Remove spec for 404 on invalid formats
Remove spec for 404 on invalid formats
