Sha256: 26affe71acb819c8a11a823028b87010a5e17b4c33ee4da999e6e51cbc22f116

Contents?: true

Size: 549 Bytes

Versions: 10

Compression:

Stored size: 549 Bytes

Contents

require 'spec_helper'

describe Neography::Rest do
  before(:each) do
    @neo = Neography::Rest.new
  end


  describe "get_nodes", :slow => true do
    it "can get nodes that exists" do
      existing_nodes = @neo.get_nodes
      expect(existing_nodes).not_to be_nil
    end

    it "can get all nodes that exists the ugly way" do
      new_node = @neo.create_node
      last_node_id = new_node["self"].split('/').last.to_i
      existing_nodes = @neo.get_nodes((1..last_node_id).to_a)
      expect(existing_nodes).not_to be_nil
    end
  end
end

Version data entries

10 entries across 10 versions & 3 rubygems

Version Path
able-neo4j-1.0.0 vendor/bundle/jruby/1.9/gems/neography-1.7.3/spec/integration/rest_experimental_spec.rb
neography-down-1.6.4 spec/integration/rest_experimental_spec.rb
neography-1.8.0 spec/integration/rest_experimental_spec.rb
neography-1.7.3 spec/integration/rest_experimental_spec.rb
neography-1.7.2 spec/integration/rest_experimental_spec.rb
neography-1.7.1 spec/integration/rest_experimental_spec.rb
neography-1.7.0 spec/integration/rest_experimental_spec.rb
neography-1.6.0 spec/integration/rest_experimental_spec.rb
neography-1.5.2 spec/integration/rest_experimental_spec.rb
neography-1.5.1 spec/integration/rest_experimental_spec.rb