【发布时间】:2014-03-19 09:19:49
【问题描述】:
我目前收到以下错误:
1) Organization.invite_user should create a new user for a specific orgs initial user
Failure/Error: organization.invite_user(second_email)
ActionView::Template::Error:
Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true
# ./app/views/devise/mailer/reset_password_instructions.html.erb:5:in `_app_views_devise_mailer_reset_password_instructions_html_erb___4480543240081585515_70131221479860'
# ./app/models/organization.rb:34:in `invite_user'
# ./spec/models/organization_spec.rb:24:in `block (3 levels) in <top (required)>'
有人知道 rspec 中会发生什么吗?
【问题讨论】:
标签: ruby-on-rails ruby rspec devise