spec/Clusterpoint/Instance/ServiceSpec.php
function it_parses_update_simple()
    {
        $this->beConstructedWith(new ConnectionFaker);
        $response = $this->update("_id", array("name" => "Marks"));
        $response->executedQuery()->shouldReturn('UPDATE database["_id"] SET name = "Marks"');
        $response->shouldReturnAnInstanceOf('\Clusterpoint\Response\Single');
        $response->shouldBeAnInstanceOf('\Clusterpoint\Response\Response');
    }
function it_parses_update_simple()
    {
        $this->beConstructedWith(new ConnectionFaker);
        $response = $this->update("_id", array("name" => "Marks"));
        $response->executedQuery()->shouldReturn('UPDATE database["_id"] SET name = "Marks"');
        $response->shouldReturnAnInstanceOf('\Clusterpoint\Response\Single');
        $response->shouldBeAnInstanceOf('\Clusterpoint\Response\Response');
    }
Update