From be719a6bb450d7a58546cf67db179d664f0a30ae Mon Sep 17 00:00:00 2001 From: Matthew Landauer Date: Fri, 26 Jul 2024 23:40:20 +0000 Subject: [PATCH] Get rid of now unnecessary email previews --- spec/mailers/previews/alerts_preview.rb | 60 ------------------------- 1 file changed, 60 deletions(-) diff --git a/spec/mailers/previews/alerts_preview.rb b/spec/mailers/previews/alerts_preview.rb index 29d4e2f34..9843d3612 100644 --- a/spec/mailers/previews/alerts_preview.rb +++ b/spec/mailers/previews/alerts_preview.rb @@ -6,36 +6,6 @@ class AlertsPreview < ActionMailer::Preview def alert - alert = Alert.new( - lat: -33.902723, - lng: 151.163362, - radius_meters: 1000, - user: User.new(email: "mary@example.com", password: "foo"), - address: "1 Illawarra Road Marrickville 2204", - confirm_id: "1234", - id: 1 - ) - application = Application.new( - id: 1, - address: "50 Illawarra Road Marrickville 2204", - lat: -33.904130, - lng: 151.161630, - description: "Something is happening here" - ) - comment = Comment.new( - application: Application.new( - id: 2, - description: "Erection of a bouncy castle", - address: "20 Illawarra Road Marrickville 2204" - ), - text: "I really don't like inflatable things", - name: "Martha" - ) - - AlertMailer.alert(alert:, applications: [application], comments: [comment]) - end - - def alert_new_theme alert = Alert.new( lat: -33.902723, lng: 151.163362, @@ -91,34 +61,4 @@ def alert_new_theme AlertMailer.alert(alert:, applications: [application1, application2], comments: [comment]) end - - def alert_account_requires_activation - alert = Alert.new( - lat: -33.902723, - lng: 151.163362, - radius_meters: 1000, - user: User.new(email: "mary@example.com", password: ""), - address: "1 Illawarra Road Marrickville 2204", - confirm_id: "1234", - id: 1 - ) - application = Application.new( - id: 1, - address: "50 Illawarra Road Marrickville 2204", - lat: -33.904130, - lng: 151.161630, - description: "Something is happening here" - ) - comment = Comment.new( - application: Application.new( - id: 2, - description: "Erection of a bouncy castle", - address: "20 Illawarra Road Marrickville 2204" - ), - text: "I really don't like inflatable things", - name: "Martha" - ) - - AlertMailer.alert(alert:, applications: [application], comments: [comment]) - end end