diff --git a/lib/potassium/recipes/mailer.rb b/lib/potassium/recipes/mailer.rb index 9d7cb561..2e78282b 100644 --- a/lib/potassium/recipes/mailer.rb +++ b/lib/potassium/recipes/mailer.rb @@ -74,7 +74,7 @@ def config_environments RUBY application asset_host_prod, env: "production" mailer_config = <<~RUBY - require Rails.root.join("config", "mailer") + require Rails.root.join("config/mailer") RUBY prepend_file "config/environments/production.rb", mailer_config diff --git a/spec/features/environment_variables_spec.rb b/spec/features/environment_variables_spec.rb index fedf1f6b..da9c266a 100644 --- a/spec/features/environment_variables_spec.rb +++ b/spec/features/environment_variables_spec.rb @@ -3,6 +3,12 @@ RSpec.describe 'EnvironmentVariables' do let(:environment_variables) { IO.read("#{project_path}/lib/environment_variables.rb") } + before :all do + drop_dummy_database + remove_project_directory + create_dummy_project + end + it 'creates a .env.test file' do expect(File.exists?("#{project_path}/.env.test")).to eq(true) end diff --git a/spec/features/mailer_spec.rb b/spec/features/mailer_spec.rb index 2f203caf..ad3cfc4e 100644 --- a/spec/features/mailer_spec.rb +++ b/spec/features/mailer_spec.rb @@ -17,7 +17,7 @@ end let(:mailer_config_text) do <<~RUBY - require Rails.root.join("config", "mailer") + require Rails.root.join("config/mailer") RUBY end