2011-03-19 113 views
0

我在這裏下面這個例子:http://erikonrails.snowedin.net/?p=230rspec - 添加輔助模塊?

我說:

lib/delayed_job_spec_helper.rb 

然後在我的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 

問題是我得到的錯誤:

/Library/Ruby/Gems/1.8/gems/aws-s3-0.6.2/lib/aws/s3/extensions.rb:206:in `const_missing': uninitialized constant DelayedJobSpecHelper (NameError) 

想法?謝謝

回答