Sha256: 008d016cf9c4f5a5979f241558128c24bab9d4191d10af8824f45d97eabb6ba7
Contents?: true
Size: 543 Bytes
Versions: 7
Compression:
Stored size: 543 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe "Mailer", type: :request do before :each do @user = User.create name: 'Elmer', last_name: 'Fudd', address: '1234 Somewhere, Over NY 11111', email: 'elmer@fudd.com' end it "attaches an csv file" do visit "/users/#{@user.id}/send_instructions" last_email = ActionMailer::Base.deliveries.last expect(last_email.to).to eq([@user.email]) expect(last_email.attachments.first).to be expect(last_email.attachments.first.content_type).to match(/#{mime_type}/) end end
Version data entries
7 entries across 7 versions & 1 rubygems