E
E
endenwer2017-06-12 19:01:34
Software testing
endenwer, 2017-06-12 19:01:34

How to write one rspec test and run it for different classes?

There is a rails application that works with several services via api. Each service has its own class and all classes have the same interface. You need to periodically (once an hour) run a test for each class. In essence, you just need to iterate over the list of all classes and run the same test for each. This needs to be done in production.
How to write one test, but at startup pass the name of the class that it will test into it?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question