Skip to content

Commit d740f11

Browse files
authored
Merge pull request #288 from espoo-dev/feat-email-testingtool
Configs Letter Opener gem
2 parents 583e590 + e031859 commit d740f11

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

Gemfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ group :development do
110110
gem "web-console", "4.2.1"
111111

112112
gem "brakeman", "6.1.2"
113+
114+
# Preview mail in the browser instead of sending.
115+
gem "letter_opener", "1.10.0"
113116
gem "reek", "6.3.0"
114117
# Add speed badges [https://github.com/MiniProfiler/rack-mini-profiler]
115118
# gem "rack-mini-profiler"
@@ -121,11 +124,11 @@ end
121124
group :test do
122125
# Use system testing [https://guides.rubyonrails.org/testing.html#system-testing]
123126
gem "capybara", "3.40.0"
127+
gem "pundit-matchers", "~> 4.0"
124128
gem "rspec-rails", "6.0.3"
125129
gem "rspec-sidekiq", "4.0.2"
126130
gem "selenium-webdriver", "4.12.0"
127131
gem "shoulda-matchers", "5.3.0"
128132
gem "simplecov", "0.22.0", require: false
129133
gem "spring-commands-rspec", "1.0.4"
130-
gem "pundit-matchers", "~> 4.0"
131134
end

Gemfile.lock

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@ GEM
136136
xpath (~> 3.2)
137137
case_transform (0.2)
138138
activesupport
139+
childprocess (5.1.0)
140+
logger (~> 1.5)
139141
coderay (1.1.3)
140142
concurrent-ruby (1.3.3)
141143
connection_pool (2.4.1)
@@ -242,6 +244,13 @@ GEM
242244
kaminari-core (= 1.2.2)
243245
kaminari-core (1.2.2)
244246
language_server-protocol (3.17.0.3)
247+
launchy (3.1.1)
248+
addressable (~> 2.8)
249+
childprocess (~> 5.0)
250+
logger (~> 1.6)
251+
letter_opener (1.10.0)
252+
launchy (>= 2.2, < 4)
253+
logger (1.7.0)
245254
loofah (2.22.0)
246255
crass (~> 1.0.2)
247256
nokogiri (>= 1.12.0)
@@ -586,6 +595,7 @@ DEPENDENCIES
586595
importmap-rails (= 2.0.1)
587596
jbuilder (= 2.11.5)
588597
kaminari (= 1.2.2)
598+
letter_opener (= 1.10.0)
589599
money (= 6.16.0)
590600
multi_json (= 1.15.0)
591601
omniauth-github

config/environments/development.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,7 @@
7777
config.action_controller.raise_on_missing_callback_actions = true
7878

7979
config.action_mailer.default_url_options = { host: "localhost", port: 3000 }
80+
81+
config.action_mailer.delivery_method = :letter_opener
82+
config.action_mailer.perform_deliveries = true
8083
end

0 commit comments

Comments
 (0)