This project tests Onlyoffice site: https://www.onlyoffice.com/
In order to execute tests use following commands:
Locally
bundle install
Bundler will install all needed gemsrspec spec/functional/spec_file.rb
Remotely
- Login to your wrata instance
with user
Site
- Obtain API key and use it via terminal
rake wrata:run_site_tests
rake decrypt_secret_config
- Edit
lib/testing_site_onlyoffice/data/private_data/data.yml
via any text editor
For exaple add new linefoo: bar
in end of file rake update_secret_config
- Add
lib/testing_site_onlyoffice/data/private_data/data.yml.gpg
to VCS - Call encrypted file value via
@test.private_data['foo']
Important Never add decrypted
lib/testing_site_onlyoffice/data/private_data/data.yml
to VCS.
This file is in .gitignore
and should never be committed