Skip to content

Commit

Permalink
skip all gremlin specs
Browse files Browse the repository at this point in the history
  • Loading branch information
maxdemarzi committed Jun 15, 2013
1 parent ea658b0 commit e8f9b2b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions spec/integration/rest_batch_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -255,14 +255,14 @@
batch_result.first["body"].first["end"].split('/').last.should == node2["self"].split('/').last
end

it "can batch gremlin" do
it "can batch gremlin", :gremlin => true do
batch_result = @neo.batch [:execute_script, "g.v(0)"]
batch_result.first.should have_key("id")
batch_result.first.should have_key("from")
batch_result.first["body"]["self"].split('/').last.should == "0"
end

it "can batch gremlin with parameters" do
it "can batch gremlin with parameters", :gremlin => true do
new_node = @neo.create_node
id = new_node["self"].split('/').last
batch_result = @neo.batch [:execute_script, "g.v(id)", {:id => id.to_i}]
Expand Down Expand Up @@ -449,7 +449,7 @@
[:add_node_to_index, "person_ssn", "ssn", "000-00-0001", "{0}"],
[:create_node, {:street1=>"94437 Kemmer Crossing", :street2=>"Apt. 333", :city=>"Abshireton", :state=>"AA", :zip=>"65820", :_type=>"Address", :created_at=>1335269478}],
[:create_relationship, "has", "{0}", "{2}", {}]
}.to raise_error(Neography::BadInputException)
}.to raise_error(Neography::NeographyError)
end

end
Expand Down
8 changes: 4 additions & 4 deletions spec/integration/rest_gremlin_fail_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
end

describe "don't break gremlin" do
it "can handle node and relationship indexes" do
it "can handle node and relationship indexes", :gremlin => true do
new_node1 = @neo.create_node
new_node2 = @neo.create_node
new_relationship = @neo.create_relationship("friends", new_node1, new_node2)
Expand All @@ -16,7 +16,7 @@
@neo.add_relationship_to_index("test_index2", key, value, new_relationship)
end

it "gremlin works" do
it "gremlin works", :gremlin => true do
root_node = @neo.execute_script("g.v(0)")
root_node.should have_key("self")
root_node["self"].split('/').last.should == "0"
Expand All @@ -25,7 +25,7 @@


describe "break gremlin" do
it "can can't handle node and relationship indexes with the same name", :break_gremlin => true do
it "can can't handle node and relationship indexes with the same name", :gremlin => true do
new_node1 = @neo.create_node
new_node2 = @neo.create_node
new_relationship = @neo.create_relationship("friends", new_node1, new_node2)
Expand All @@ -35,7 +35,7 @@
@neo.add_relationship_to_index("test_index3", key, value, new_relationship)
end

it "gremlin works" do
it "gremlin works", :gremlin => true do
root_node = @neo.execute_script("g.v(0)")
root_node.should have_key("self")
root_node["self"].split('/').last.should == "0"
Expand Down
6 changes: 3 additions & 3 deletions spec/integration/rest_plugin_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
end

describe "execute gremlin script" do
it "can get the root node id" do
it "can get the root node id", :gremlin => true do
root_node = @neo.execute_script("g.v(0)")
root_node.should have_key("self")
root_node["self"].split('/').last.should == "0"
end

it "can get the a node" do
it "can get the a node", :gremlin => true do
new_node = @neo.create_node
id = new_node["self"].split('/').last
existing_node = @neo.execute_script("g.v(#{id})")
Expand All @@ -21,7 +21,7 @@
existing_node["self"].split('/').last.should == id
end

it "can get the a node with a variable" do
it "can get the a node with a variable", :gremlin => true do
new_node = @neo.create_node
id = new_node["self"].split('/').last
existing_node = @neo.execute_script("g.v(id)", {:id => id.to_i})
Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def generate_text(length=8)
end

RSpec.configure do |c|
c.filter_run_excluding :slow => true, :break_gremlin => true
c.filter_run_excluding :slow => true, :gremlin => true
end


Expand Down

0 comments on commit e8f9b2b

Please sign in to comment.