[英]rspec - adding a helper module?
I'm following this example here: http://erikonrails.snowedin.net/?p=230 我在这里关注此示例: http : //erikonrails.snowedin.net/?p=230
I added: 我补充说:
lib/delayed_job_spec_helper.rb
Then in my rspec I have: 然后在我的rspec中,我有:
describe Thingy do
include DelayedJobSpecHelper
it "should have been worked on if I do something that queues jobs" do
thing = Thingy.new
thing.method_that_queues_jobs
work_off
thing.should be_worked_on
end
end
Problem is I get the error: 问题是我得到了错误:
/Library/Ruby/Gems/1.8/gems/aws-s3-0.6.2/lib/aws/s3/extensions.rb:206:in `const_missing': uninitialized constant DelayedJobSpecHelper (NameError)
Ideas? 有想法吗? thanks 谢谢
Please check this discussion, it might be connected to your problem. 请检查此讨论,它可能与您的问题有关。
http://www.mail-archive.com/thinking-sphinx@googlegroups.com/msg05036.html http://www.mail-archive.com/thinking-sphinx@googlegroups.com/msg05036.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.