Before you fire this up locally, you'll need some dependencies installed.
- Ruby 2.3.1 via your version manager of choice
- MySQL
- ImageMagick
- the easiest way to install ImageMagick is with Homebrew
brew install imagemagick
- the easiest way to install ImageMagick is with Homebrew
- QT for capybara-webkit
There is a dummy app included in the Engine source. To get it running, follow these steps.
After cloning the repo, cd into Fae and install gems into a gemset on Ruby 2.3.1:
cd path/to/fae
bundle installCd to the dummy app:
cd spec/dummyCreate the DB and migrate:
rake db:create
rake db:migrate && rake db:migrate RAILS_ENV=testSeed the DB:
rake fae:seed_dbFire up the server:
rails serverThe dummy app should stay up-to-date with the latest Rails version we support. Running tests against it will run all specs against that version.
Use guard to have specs autorunning as you change files
guardAppraisal is an amazing gem that allows us to run the specs against multiple versions of Rails. You can find all support versions in the Appraisals file.
To run all appraisals, first install all of the gems of the different appraisal versions with:
appraisalTo run tests in all appraisal versions:
appraisal rspecOr you can run a specific version using the name defined in Appraisals:
appraisal rails_4_2 rspec