Skip to content

Cannot create a DELETE request #32

Description

@louiseavelar

Hi,

We are trying to create a delete request using ember-pact-cli and mirage using the following steps:
`
let model = server.create('model', {
name: 'some model'
});

given('a model item exists', model);

let actualModel = await this.store().findRecord('model', 1);

actualModel.deleteRecord();

await interaction(function() {
actualModel.save();
});`

OR

`
let model = server.create('model', {
name: 'some model'
});

given('a model item exists', model);

let actualModel = await this.store().findRecord('model', 1);

await interaction(function() {
actualModel.destroyRecord();
});`

Everytime I run the ember tests to generate the pact file, I am getting the following error:
cannot read property 'method' of null

I've cloned this repo and added a delete test on the examples here and the same error is being thrown as well.

I was wondering if this is the correct way of creating a DELETE request or wether this could be a bug or not.

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions