From e8f9b2b7f4eac6c8680862507c52c6647586b061 Mon Sep 17 00:00:00 2001 From: Max De Marzi Date: Sat, 15 Jun 2013 12:00:59 -0500 Subject: [PATCH] skip all gremlin specs --- spec/integration/rest_batch_spec.rb | 6 +++--- spec/integration/rest_gremlin_fail_spec.rb | 8 ++++---- spec/integration/rest_plugin_spec.rb | 6 +++--- spec/spec_helper.rb | 2 +- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/spec/integration/rest_batch_spec.rb b/spec/integration/rest_batch_spec.rb index fb1adcb..30bb854 100644 --- a/spec/integration/rest_batch_spec.rb +++ b/spec/integration/rest_batch_spec.rb @@ -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}] @@ -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 diff --git a/spec/integration/rest_gremlin_fail_spec.rb b/spec/integration/rest_gremlin_fail_spec.rb index 583ee40..a0b1e82 100644 --- a/spec/integration/rest_gremlin_fail_spec.rb +++ b/spec/integration/rest_gremlin_fail_spec.rb @@ -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) @@ -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" @@ -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) @@ -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" diff --git a/spec/integration/rest_plugin_spec.rb b/spec/integration/rest_plugin_spec.rb index 68e2882..eadd551 100644 --- a/spec/integration/rest_plugin_spec.rb +++ b/spec/integration/rest_plugin_spec.rb @@ -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})") @@ -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}) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 4ca9bb1..7dd6fe8 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -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