mas-rad_core

This project contains a Rails Engine with shared code used for the Retirement Adviser Directory.

Build Status

Prerequisites

Setup

Clone the repository:

$ git clone https://github.com/moneyadviceservice/mas-rad_core.git

Make sure all dependencies are available to the application:

$ bundle install

Make sure PostgreSQL is running.

Setup the database:

$ cp spec/dummy/config/database.example.yml spec/dummy/config/database.yml

Be sure to remove or modify the username attribute.

$ bundle exec rake db:create \
  && bundle exec rake db:migrate \
  && bundle exec rake db:schema:load

NOTE db:schema:load loads into both the test and development databases. But db:migrate does not.

Running the Tests

To run the Ruby tests:

$ bundle exec rspec