In Sparkling Watir and RSpec for iOS framework, the variable screenshot is used in the config.after(:each) block without being initialized or assigned a value.
After executing the test, we get an error about undefined local variable or method screenshot.

The variable screenshot should be initialised in line 22 and assigned the value of app.screenshot.save, in the file spec_helper.rb

In Sparkling Watir and RSpec for iOS framework, the variable screenshot is used in the config.after(:each) block without being initialized or assigned a value.
After executing the test, we get an error about undefined local variable or method screenshot.
The variable screenshot should be initialised in line 22 and assigned the value of app.screenshot.save, in the file spec_helper.rb