Skip to content

XML response should have - text comparison with number input #35

@sytzek

Description

@sytzek

Using from api_step.rb the step:
the XML response should have "field" with the text "1234"

The string "1234" enters the body of the step as the argument named 'text'.
In the body the 'text' has class 'Fixnum' in stead of 'String.

The comparison between the element found and the text argument fails because the classes dont match.

Simple fix is to transform text explicitly to class String with the method 'to_s'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions