spec/Clusterpoint/Instance/ServiceSpec.php
function it_parses_insert_one()
    {
        $this->beConstructedWith(new ConnectionFaker);
        $response = $this->insertOne(array("name" => "Marks", "surname"=>"Gerasimovs", "age"=>24));
        $response->executedQuery()->shouldReturn('{"name" : "Marks","surname" : "Gerasimovs","age" : 24}');
        $response->shouldReturnAnInstanceOf('\Clusterpoint\Response\Single');
        $response->shouldBeAnInstanceOf('\Clusterpoint\Response\Response');
    }
function it_parses_insert_one()
    {
        $this->beConstructedWith(new ConnectionFaker);
        $response = $this->insertOne(array("name" => "Marks", "surname"=>"Gerasimovs", "age"=>24));
        $response->executedQuery()->shouldReturn('{"name" : "Marks","surname" : "Gerasimovs","age" : 24}');
        $response->shouldReturnAnInstanceOf('\Clusterpoint\Response\Single');
        $response->shouldBeAnInstanceOf('\Clusterpoint\Response\Response');
    }
Insert