Ruby - Testing with RSpec and Minitest
In RSpec, what is the role of the
it block inside a describe block?it block inside a describe block?describe and it blocksdescribe block groups related tests, while the it block defines a single test example.it blockit block contains the actual test code that checks behavior or output.it block = Defines test example [OK]it means 'this test' [OK]it with setup or teardown hooksit groups tests instead of defining one15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions