virtuatable-museum / virtuatable

Utility classes for the virtuatable services
0 stars 0 forks source link

Create shared context for the base of the infrastructure #5

Open vincentcourtois opened 4 years ago

vincentcourtois commented 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 :

Then we could use this shared contexts in tests to avoid creating global elements that can interfer between the tests.