【发布时间】:2012-11-18 08:25:36
【问题描述】:
我正在使用 gem Remarkable activerecord 进行关联。我已经安装了卓越和卓越的 activerecrod 两个 gem。我已经在我的 Gemfile 中添加了两个 gem。我在 spec_helper.rb 中添加了“remarkable_activerecord”。
describe Authentication do
FactoryGirl.build(:authentication).should belong_to(:user)
end
我得到了错误: 身份验证 失败/错误:它 { 应该属于_to(:user) } 无方法错误: 未定义的方法 `belong_to' for #
现在应该怎么做..??在此先感谢
【问题讨论】:
标签: ruby-on-rails rspec gem rspec-rails