Sha256: 4c3a244bab70c5f2f617de7848d315a2a8f6b58a403dcd5edb129ba14fb23762
Contents?: true
Size: 863 Bytes
Versions: 11
Compression:
Stored size: 863 Bytes
Contents
require 'rails_helper' fdescribe 'Enviar email' do include ActiveJob::TestHelper subject do fill_in 'email_from_address', with: Faker::Internet.email fill_in 'email_from_name', with: Faker::Name.name fill_in 'email_reply_to', with: Faker::Internet.email fill_in 'email_body_input', with: Faker::Lorem.sentence fill_in 'email_subject', with: Faker::Lorem.sentence click_on 'Enviar' expect(page).to have_text 'revisá los campos obligatorios' fill_in 'email_to', with: Faker::Internet.email click_on 'Enviar' end around do |example| perform_enqueued_jobs do example.run end end before do driven_by ENV['DRIVER']&.to_sym || :selenium_chrome_headless_iphone login_as create(:user, :developer) visit '/a/emails/new' end it do subject expect(page).to have_text 'sent' end end
Version data entries
11 entries across 11 versions & 1 rubygems