Rails 5 / Rspec 3.5.0 -- setting request headers? · Issue #1655 · rspec/rspec-rails

Hi, I had a spec working under Rails 4 / Rspec 3.4.4 that looked like this: it 'does something with the referrer' do allow(request).to receive(:referrer).and_return('aol.com') expect(Foo).to receiv...