Skip to content

Usage of uninitialised variable fails the test #78

@natalia-ss

Description

@natalia-ss

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.

error variable screenshot

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

Uninitialised variable

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions