add one view test

This commit is contained in:
Devin Howard 2017-10-17 08:28:00 -07:00
parent 8b492d6dc8
commit cbf44e3dfe

View file

@ -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