TL;DR
define let(:helper) { get_helper } and use it as the receiver.
π You can write like this
describe ApplicationController, type: :controller do
  let(:helper) { get_helper }
  describe '#hello' do
    it { expect(helper.hello).to eq 'hello' }
  end
end
 

 
     
    
Top comments (0)