0
我有以下規格:特有的問題:簡單Rspec的規格傳Linux,但不能在Mac OS X
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獅子它失敗,說像expected 2, got 0
。
什麼給?
我很樂意添加更多的周邊代碼,以提供更多的上下文。
你的Mac上有rmagick設置嗎? – apneadiving
是的,'rmagick'包含在Gemfile中並作爲'bundle'的一部分安裝。 –