-
Notifications
You must be signed in to change notification settings - Fork 6
Ryspec
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/factoriesfor yours factories -
spec/supportfiles within this directory are automatically loaded - others are for yours spec files
First you need some dummy application
Ryspec will look for them in
-
DUMMY_PATHenvironment variable -
test/dummydirectory
Now run bundle install and rspec
Just run bundle exec rake RYS_NAME:spec
Rys basic
Dependencies
Tests
Management