Sha256: 2859734a27070b5a538c043f2f5e0f92df8b7ee9606dd9e33da9fb059c854941
Contents?: true
Size: 529 Bytes
Versions: 5
Compression:
Stored size: 529 Bytes
Contents
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 xlsx file" do visit "/users/#{@user.id}/send_instructions" last_email = ActionMailer::Base.deliveries.last last_email.to.should == [@user.email] last_email.attachments.first.should be last_email.attachments.first.content_type.should == Mime::XLSX.to_s + "; charset=UTF-8" end end
Version data entries
5 entries across 5 versions & 1 rubygems