add one view test
This commit is contained in:
parent
8b492d6dc8
commit
cbf44e3dfe
1 changed files with 17 additions and 0 deletions
|
@ -0,0 +1,17 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
require 'rails_helper'
|
||||||
|
|
||||||
|
RSpec.describe 'map_activity_mailer/daily_summary.html.erb' do
|
||||||
|
it 'displays messages sent' do
|
||||||
|
assign(:user, create(:user))
|
||||||
|
assign(:map, create(:map))
|
||||||
|
assign(:summary_data, stats: {
|
||||||
|
messages_sent: 5
|
||||||
|
})
|
||||||
|
|
||||||
|
render
|
||||||
|
|
||||||
|
expect(rendered).to match(/5 messages/)
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in a new issue