spec/controllers/feedback_controller_spec.rb in europeana-feedback-button-0.0.4 vs spec/controllers/feedback_controller_spec.rb in europeana-feedback-button-0.0.5
- old
+ new
@@ -1,5 +1,6 @@
+# frozen_string_literal: true
RSpec.describe Europeana::FeedbackButton::FeedbackController do
def main_app
Rails.application.class.routes.url_helpers
end
@@ -12,19 +13,19 @@
context 'with recipient configured' do
before do
Rails.application.config.x.feedback_mail_to = 'feedback@example.com'
end
- it "should queue an email job" do
+ it 'should queue an email job' do
expect { subject }.to change(ActionMailer::Base.deliveries, :length)
end
- #it '' do
+ # it '' do
# message_delivery = instance_double(ActionMailer::MessageDelivery)
# expect(ServiceMailer).to receive(:new_user).with(@user).and_return(message_delivery)
# expect(message_delivery).to receive(:deliver_later)
# subject
- #expect { subject }.to change { Delayed::Job.where("handler LIKE '%FeedbackMailer%'").count }.by(1)
- #end
+ # expect { subject }.to change { Delayed::Job.where("handler LIKE '%FeedbackMailer%'").count }.by(1)
+ # end
end
context 'without recipient configured' do
before do
Rails.application.config.x.feedback_mail_to = nil