我有以下规格:
it 'should find and associate thumbnail and video for article with an episode with the first alpha-numerically matching files it finds' do
@article = FactoryGirl.create(:pending_assets_article, id: 1)
@episode1 = FactoryGirl.create(:episode, topic_id: @topic.id, article_id: @article.id, position: 1)
@article.video.should be_nil
@article.thumbnail.image.should be_blank
@article.state.should == 'pending assets'
run_rake_task
Delayed::Job.count.should == 2
...
end
奇怪的是,这个规范在 Ubuntu 中通过得很好,但在 Mac OS X Lion 中却失败了,比如expected 2, got 0
.
是什么赋予了??
我很乐意添加更多周边代码以提供更多上下文。