質問編集履歴

1

一部見にくい部分があったので修正しました。

2016/07/06 07:08

投稿

yamitake
yamitake

スコア27

test CHANGED
File without changes
test CHANGED
@@ -106,17 +106,23 @@
106
106
 
107
107
 
108
108
 
109
- ###試したこと
109
+ ## 試したこと
110
110
 
111
- # test.rbにdefault_url_optionsの記述
111
+ ### test.rbにdefault_url_optionsの記述
112
112
 
113
113
  > Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true
114
114
 
115
+
116
+
117
+ と出ているので、`test.rb`に
118
+
115
- と出ているので、`test.rb`にconfig.action_mailer.default_url_options = { host: 'wercker-test.example.jp' } を追加しましたが、解決せず。
119
+ `config.action_mailer.default_url_options = { host: 'wercker-test.example.jp' }`
120
+
121
+ を追加しましたが、解決せず。
116
122
 
117
123
 
118
124
 
119
- # rails_helperでRails.application.routes.default_url_options[:host] = 'test.host'
125
+ ### rails_helperdefault_url_optionsの設定を記述
120
126
 
121
127
  http://stackoverflow.com/questions/7182600/rspec-route-testing-and-hosts を参考にrails_helper内に下記の設定を追加しました。が解決せず。
122
128