Sha256: 1d34a4f42375a12a51d33ce07b252c1439b97ac4fb087213efcddb9d6a4299fe
Contents?: true
Size: 454 Bytes
Versions: 6
Compression:
Stored size: 454 Bytes
Contents
require 'rails_helper' RSpec.describe BoaVistaStubs::RequestsController, type: :controller do routes { BoaVistaStubs::Engine.routes } before do allow(BoaVistaStubs::DocumentService).to receive(:call).with(anything) { 'document response' } end describe 'GET :index' do it 'renders document response with success' do get :index, consulta: 'my search string' expect(response.body).to eq('document response') end end end
Version data entries
6 entries across 6 versions & 1 rubygems