Skip to content

Weird bug - Put and Post tests showing up as Get #25

@pretentiousgit

Description

@pretentiousgit

The test for this looks like this:

    it('should update existing metadata', function(done){
        api.put('/api/participant/'+part2._id)
            .set('x-access-token', apiToken2)
            .send({
                metadata  : [{
                    key   : 'Phone',
                    value : '212-679-4251',
                    group : 'Dental' 
                },
                {
                    key   : 'Name',
                    value : 'Shauna',
                    group : 'Dental'
                }]
            })
            .expect(200)
            .then(function(data){
                expect(data.body.metadata).to.have.length(6)
                done();
            })
    })

And it generates the correct CURL but incorrect tagging and styling:
screen shot 2015-08-19 at 4 38 38 pm

The "it" block is nested within two "describe" blocks - the top one to group general objects, the second to group the verb on that object, in this case "participant CRUD" then "participant PUT." This is an occasional bug - it looks like it just turns up sometimes on large suites.

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