Skip to content
Ondřej Moravčík edited this page Sep 26, 2018 · 1 revision
  • Test framework is rpsec and rspec-rails
  • Factories is by factory_bot
  • You can test from main Rails application or directly from the rys
  • Tests are located in RYS_ROOT/spec

Folders

  • spec/factories for yours factories
  • spec/support files within this directory are automatically loaded
  • others are for yours spec files

Testing from rys

First you need some dummy application

Ryspec will look for them in

  • DUMMY_PATH environment variable
  • test/dummy directory

Now run bundle install and rspec

Testing from main application

Just run bundle exec rake RYS_NAME:spec

Rys basic

Dependencies

Tests

Management

Clone this wiki locally