This repository has been archived by the owner on Jun 24, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
devel install
mkasztelnik edited this page Nov 27, 2014
·
1 revision
- Get ruby 2.1.4.
If you're using rvm simply type:
rvm install 2.1.4
If you're using rbenv with ruby-build simply type:
rbenv install 2.1.2
- Clone project from git (check https://github.com/dice-cyfronet/atmosphere for URIs). You may wish to create a keypair with ssh-keygen and upload your public key to github to avoid having to authenticate yourself every time you check out/commit code.
- Change to project dir and install gems by typing:
bundle install
-
Manually set up empty Postgresql databases. As a minimum, separate databases for development and test environments are required (the production database is not necessary for development purposes). Remember to create a DBMS user account through which Rails will be able to access these databases.
-
Change to project directory and build your databases by running migrations:
rake db:migrate RAILS_ENV=development
rake db:migrate RAILS_ENV=test
-
Change directory into
spec/dummy
and start rails server:rails s
-
Open your browser and navigate to http://localhost:3000. Success!
- We are using rspec to create tests
- All database fixtures can be created using factory-girl
- To run all tests type:
bundle exec rspec
- To invoke tests for one class type:
bundle exec rspec file/path.rb
- We use guard for automatic test invoking while you are coding. To start guard type:
guard
- Guard configuration stored in
Guardfile
defines rules when to start particular tests. More details can be found here