Skip to content

undefined method 'header' #41

@mzeyen

Description

@mzeyen

Hi everyone,
i am quite new to cucumber and testing REST API´s. But i have the following problem.

I installed the latest version of cucumber-api-steps (v0.13) and when i run a feature file i get the error mentioned above in the GIVEN step.

"undefined method 'header'

My feature file looks l ike this:

Feature: API

Scenario: list all products
Given I send and accept JSON
When I send a GET request to "any URL"
Then the response should be "200"

I followed the installation steps in the Readme file,
I am using ruby 2.2.0.

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