Power in the context &block

Let me preface this post by stating that I am fairly new to the world of TDD and everything it encompasses.

In learning how to write tests, what to test and making sure my tests are performing correctly, one thing that helps [me] as well as reading others tests is using the context block in Rspec.

Context blocks help keep you’re tests clear and concise and when you are working in a big team, it helps to quickly identify what your specifically trying to test.

Happy testing!

Tags: rspec rails tdd