【发布时间】:2012-07-13 08:35:37
【问题描述】:
升级到 Rails 3.2.6 或 Rspec 2.11.0 后,我的规范开始显示如下路由错误:
4) UsersController GET activate activation code not exist
Failure/Error: subject{ get :activate }
ActionController::RoutingError:
No route matches {:controller=>"users", :action=>"activate"}
每个钩子后还有一个错误
An error occurred in an after(:each) hook
RSpec::Mocks::MockExpectationError: (#<EmailSubscriber[...]>).update_attributes({:enable=>true})
expected: 1 time
received: 0 times
occurred at [...]/spec/controllers/users_controller_spec.rb:75:in `block (3 levels) in <top (required)>'
处于开发模式的应用程序仍然可以正常运行。
【问题讨论】:
标签: ruby-on-rails-3 rspec journey