-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
using 1.5 GA for install, found problem with gremlin (see rest_gremli…
…n_fail_spec.rb)
- Loading branch information
1 parent
7596066
commit d9f460a
Showing
7 changed files
with
123 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
module Neography | ||
module Index | ||
|
||
def index | ||
def index(*args) | ||
|
||
end | ||
|
||
def find | ||
def find(*args) | ||
|
||
end | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
require File.join(File.dirname(__FILE__), '..', 'spec_helper') | ||
|
||
describe Neography::Rest do | ||
before(:each) do | ||
@neo = Neography::Rest.new | ||
end | ||
|
||
describe "don't break gremlin" do | ||
it "can handle node and relationship indexes" do | ||
new_node1 = @neo.create_node | ||
new_node2 = @neo.create_node | ||
new_relationship = @neo.create_relationship("friends", new_node1, new_node2) | ||
key = generate_text(6) | ||
value = generate_text | ||
@neo.add_node_to_index("test_index", key, value, new_node1) | ||
@neo.add_relationship_to_index("test_index2", key, value, new_relationship) | ||
end | ||
|
||
it "gremlin works" do | ||
root_node = @neo.execute_script("g.v(0)") | ||
root_node.should have_key("self") | ||
root_node["self"].split('/').last.should == "0" | ||
end | ||
end | ||
|
||
|
||
describe "break gremlin" do | ||
it "can can't handle node and relationship indexes with the same name" do | ||
new_node1 = @neo.create_node | ||
new_node2 = @neo.create_node | ||
new_relationship = @neo.create_relationship("friends", new_node1, new_node2) | ||
key = generate_text(6) | ||
value = generate_text | ||
@neo.add_node_to_index("test_index3", key, value, new_node1) | ||
@neo.add_relationship_to_index("test_index3", key, value, new_relationship) | ||
end | ||
|
||
it "gremlin works" do | ||
root_node = @neo.execute_script("g.v(0)") | ||
root_node.should have_key("self") | ||
root_node["self"].split('/').last.should == "0" | ||
end | ||
end | ||
|
||
|
||
end |
Oops, something went wrong.