Skip to content

DuncanYe/twittwr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Maintainability

README

Fork

請 Fork 到你的 GitHub 目錄下,再從自己的目錄 git clone

How to initialize

下載要用到的套件

$ bundle install

載入預設提供的資料表

$ rails db:migrate

更新 Fork 的程式碼

由於是先 fork 再 clone,一般的 pull origin 只會拉到自己的 github repo 如果 AC 專案有更新,想要同步到最新專案程式碼的話,你需要先把 AC 專案位置加入遠端清單,再執行 pull

git remote add upstream git@github.com:ALPHACamp/simple-twitter.git
git pull upstream master

自動化測試

和自動化測試有關的程式碼,都存放在 /spec 的專案目錄下,所有的 Model 和 Controller 文件都會有一個對應的 spec 檔案,使用 rails generate modelrails generate controller 指令時會自動覆寫到現有的 spec 檔案。

因此,請你不要使用 rails generate modelrails generate controller 指令。

相對的,在你下載的專案中,已經準備好對應的 Model 和 Controller 檔案。

如果想在本地執行自動化測試,可以輸入指令

$ rspec

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published