Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
79 lines (53 sloc) 2.31 KB
== Setup
#Pre install
sudo gem install haml
# Installs all required gems
sudo rake gems:install
# Installing mysql gem if necessary
sudo apt-get install ruby1.8-dev
sudo apt-get install libmysqlclient-dev
sudo gem install mysql
# setup database config
cp config/database.yml.example config/database.yml
# Should migrate database every time after updaing codes from SCM
rake db:migrate
# Check if all requirements are ready
# Checkout what tasks can run
rake -T
# Checkout a task detail info
rake -D <taskname>
# setup gmail account
cp config/smtp_gmail.yml.example config/config/smtp_gmail.yml
== Testing
# Installs all required gems for testing
sudo rake gems:install RAILS_ENV=test
# Prepare test db before running test if necessary
rake cucumber:prepare
# Run test(should test every time before committing source codes)
cucumber features
== Reference
Ruby on Rails guides
Clearance: Rails authentication for developers who write tests
Step Definitions - cucumber - GitHub
jRails is a drop-in jQuery replacement for Prototype/ on Rails.
Paperclip: Attaching Files in Rails
The application is called hoptoad, and it’s a hosted web service which can be used as an error reporting and analysis tool by Rails applications
Clearance: Rails authentication for developers who write tests
Rails authentication with email & password.
Cucumber - Making BDD fun
Cucumber is a tool that can execute plain-text documents as automated functional tests.
Install Cucumber, Webrat and RSpec
Making Tests Easy on the Fingers and Eyes