I am using Jasmine gem in my Rails project for testing JavaScript. My tests add some HTML to document.body. I want it to be clean before each test. Is there a way to clean it globally for all tests in all test files? I do not want to put the cleaning in beforeEach in each suite.
Share
Yes you can here are two ways;)