Skip to content

Commit

Permalink
Prevent the creation of new accounts during mailer preview
Browse files Browse the repository at this point in the history
  • Loading branch information
MrSerth committed Nov 1, 2023
1 parent 2fb18e5 commit ae013ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/mailers/previews/user_mailer_preview.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

class UserMailerPreview < ActionMailer::Preview
def exercise_anomaly_detected
collection = ExerciseCollection.new(name: 'Hello World', user: FactoryBot.create(:admin))
collection = ExerciseCollection.new(name: 'Hello World', user: FactoryBot.build(:admin))
anomalies = {49 => 879.325828, 51 => 924.870057, 31 => 1031.21233, 69 => 2159.182116}
UserMailer.exercise_anomaly_detected(collection, anomalies)
end
Expand Down

0 comments on commit ae013ba

Please sign in to comment.