我試着運行rake test:profile
時得到this error。該錯誤是由test_homepage
這是在這個文件來:運行測試時出現意外錯誤
require 'test_helper'
require 'rails/performance_test_help'
# Profiling results for each test method are written to tmp/performance.
class BrowsingTest < ActionDispatch::PerformanceTest
def test_homepage
get '/'
end
end
我不明白爲什麼運行這個測試有什麼關係創造了銀行。任何人都可以解釋發生了什麼?
你可以發佈你的db/seeds.rb文件嗎? – 2011-01-14 19:12:32