Sha256: f30eb3fc00dcec377eb5630b94c5d2e11f138204f9805c112f003c96b90b58e1
Contents?: true
Size: 542 Bytes
Versions: 4
Compression:
Stored size: 542 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 a 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
csv_rb-6.0.3.1 | spec/csv_rb_mailer_spec.rb |
csv_rb-6.0.2.4 | spec/csv_rb_mailer_spec.rb |
csv_rb-6.0.2.3 | spec/csv_rb_mailer_spec.rb |
csv_rb-6.0.2.2 | spec/csv_rb_mailer_spec.rb |