Merge remote-tracking branch 'parent/main' into upstream-20240408
This commit is contained in:
commit
45c5c7b055
27 changed files with 326 additions and 121 deletions
|
@ -247,6 +247,12 @@ describe UserMailer do
|
|||
describe '#welcome' do
|
||||
let(:mail) { described_class.welcome(receiver) }
|
||||
|
||||
before do
|
||||
# This is a bit hacky and low-level but this allows stubbing trending tags
|
||||
tag_ids = Fabricate.times(5, :tag).pluck(:id)
|
||||
allow(Trends.tags).to receive(:query).and_return(instance_double(Trends::Query, allowed: Tag.where(id: tag_ids)))
|
||||
end
|
||||
|
||||
it 'renders welcome mail' do
|
||||
expect(mail)
|
||||
.to be_present
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue