Open vincentcourtois opened 4 years ago
Source : https://medium.com/@allegranzia/rspec-ruby-testing-shared-examples-and-shared-context-1d5991336d53
We could create a shared context with objects such as :
Arkaan::Monitoring::Gateway
Arkaan::OAuth::Application
Arkaan::Monitoring::Service
Arkaan::Monitoring::Instance
Arkaan::Account
Then we could use this shared contexts in tests to avoid creating global elements that can interfer between the tests.
Source : https://medium.com/@allegranzia/rspec-ruby-testing-shared-examples-and-shared-context-1d5991336d53
We could create a shared context with objects such as :
Arkaan::Monitoring::Gateway
Arkaan::OAuth::Application
Arkaan::Monitoring::Service
and itsArkaan::Monitoring::Instance
Arkaan::Account
with all the rightsThen we could use this shared contexts in tests to avoid creating global elements that can interfer between the tests.