Skip to content

Latest commit

 

History

History
41 lines (32 loc) · 1.01 KB

README.md

File metadata and controls

41 lines (32 loc) · 1.01 KB

Ruby Scaffold for Code Retreat

Option 1: use Docker wrapper scripts

This scaffold comes with pre-configured Docker environment.

Run the tests

May take 1min. to build the image the 1st time.

./rake

Or, using TCR/BTCR:

./../../scripts/[tcr|btcr]

Option 2: use a locally installed ruby environment

With this options, TCR/BTCR scripts will not be directly available because they use ./rake (which calls Docker). If you wish to use TCR without Docker, see the comment in ./scripts/test so that it uses Rake directly without wrapping in a Docker container.

Ruby and Bundler 2+ are required.

Install the dependencies

bundle

Run the tests

rake

Hierarchy of directories

  • spec: the root of tests, you put your helper there
  • spec/dummy: the tests are organized by directories, usually the name of the lib, or when you do the distinction between unit and integration tests
  • lib: the source of your lib