metamaps--metamaps/spec/views/map_activity_mailer/daily_summary.html.erb_spec.rb

18 lines
361 B
Ruby
Raw Permalink Normal View History

2017-10-17 15:28:00 +00:00
# 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