0
我從編程中休息了很長時間,因爲其他事情引起了我的興趣。當我選擇了它的時候,我決定通過railstutorial.org回去是個好主意,因爲我第一次發現它很有用,但記不住我的希望。Rspec測試失敗應該通過。 Railstutorial.org第3章
只需運行命令「軌生成器頁首頁接觸」後,我有一個看起來像這樣的「投機/控制器/ pages_controllers_rspec.rb」文件:
require 'spec_helper'
describe PagesController do
describe "GET 'home'" do
it "should be successful" do
get 'home'
response.should be_success
end
end
describe "GET 'contact'" do
it "should be successful" do
get 'contact'
response.should be_success
end
end
end
即使所有的路線和控制器如第3章所述,Rspec表示失敗。我究竟做錯了什麼?
兩個測試失敗消息:
Failure/Error: Unable to find matching line from backtrace
PGError: fe_sendauth: no password supplied
我沒有看到任何失敗消息。 – Zabba
問題已解決。一旦我被允許,我會發布答案。 –