A test app whose only purpose is to test the install/execute of the activejsonmodel gem in the context where ActiveRecord is installed (full rails stack). This project is used in the rmorlok/activejsonmodel repo as part of the test suite.
By default this repo installs a version of activejsonmodel
from RubyGems. If the environment variable
GITHUB_REPOSITORY
and GITHUB_SHA
are set, it will install using a github repo and either a branch (GITHUB_HEAD_REF
)
or commit SHA (GITHUB_SHA
).
To install from a specific repo via git sha:
export GITHUB_REPOSITORY=rmorlok/activejsonmodel
export GITHUB_SHA=acc1e205f712fe321847a0c2c94144c1fc2ed5eb
bundle install
bundle exec rake test
alternatively, the repo can be configured to install a local git branch. You must specify the locally checked out git branch:
bundle config local.activejsonmodel /my/path/to/activejsonmodel
export LOCAL_BRANCH=my-local-branch
bundle install
bundle exec rake test