From e59c8e9dddb372ce9532fe8ae9f4e09633596f4b Mon Sep 17 00:00:00 2001 From: Roel van Dijk Date: Fri, 28 Sep 2012 17:54:56 +0200 Subject: [PATCH] Change spec_helper File requires to simpler requires. --- spec/integration/authorization_spec.rb | 4 ++-- spec/integration/index_spec.rb | 8 ++++---- spec/integration/neography_spec.rb | 4 ++-- spec/integration/node_path_spec.rb | 4 ++-- spec/integration/node_relationship_spec.rb | 4 ++-- spec/integration/node_spec.rb | 2 +- spec/integration/parsing_spec.rb | 4 ++-- spec/integration/relationship_spec.rb | 4 ++-- spec/integration/rest_batch_spec.rb | 2 +- spec/integration/rest_bulk_spec.rb | 4 ++-- spec/integration/rest_experimental_spec.rb | 4 ++-- spec/integration/rest_gremlin_fail_spec.rb | 4 ++-- spec/integration/rest_header_spec.rb | 2 +- spec/integration/rest_index_spec.rb | 2 +- spec/integration/rest_node_spec.rb | 4 ++-- spec/integration/rest_path_spec.rb | 4 ++-- spec/integration/rest_plugin_spec.rb | 4 ++-- spec/integration/rest_relationship_spec.rb | 4 ++-- spec/integration/rest_traverse_spec.rb | 4 ++-- 19 files changed, 36 insertions(+), 36 deletions(-) diff --git a/spec/integration/authorization_spec.rb b/spec/integration/authorization_spec.rb index da7ee36..6129d01 100644 --- a/spec/integration/authorization_spec.rb +++ b/spec/integration/authorization_spec.rb @@ -1,4 +1,4 @@ -require File.join(File.dirname(__FILE__), '..', 'spec_helper') +require 'spec_helper' describe Neography::Rest, :slow => true do describe "basic authentication" do @@ -45,4 +45,4 @@ end end -end \ No newline at end of file +end diff --git a/spec/integration/index_spec.rb b/spec/integration/index_spec.rb index 6fc53b0..7b1e96e 100644 --- a/spec/integration/index_spec.rb +++ b/spec/integration/index_spec.rb @@ -1,4 +1,4 @@ -require File.join(File.dirname(__FILE__), '..', 'spec_helper') +require 'spec_helper' describe Neography::Index do @@ -6,7 +6,7 @@ new_node = Neography::Node.create key = generate_text(6) value = generate_text - new_node.add_to_index("node_test_index", key, value) + new_node.add_to_index("node_test_index", key, value) end it "can add a relationship to an index" do @@ -17,5 +17,5 @@ value = generate_text r.add_to_index("relationship_test_index", key, value) end - -end \ No newline at end of file + +end diff --git a/spec/integration/neography_spec.rb b/spec/integration/neography_spec.rb index 30083be..c60a6a4 100644 --- a/spec/integration/neography_spec.rb +++ b/spec/integration/neography_spec.rb @@ -1,4 +1,4 @@ -require File.join(File.dirname(__FILE__), '..', 'spec_helper') +require 'spec_helper' describe Neography do describe "ref_node" do @@ -7,4 +7,4 @@ root_node.should have_key("self") end end -end \ No newline at end of file +end diff --git a/spec/integration/node_path_spec.rb b/spec/integration/node_path_spec.rb index 6ed6cde..73464e5 100644 --- a/spec/integration/node_path_spec.rb +++ b/spec/integration/node_path_spec.rb @@ -1,4 +1,4 @@ -require File.join(File.dirname(__FILE__), '..', 'spec_helper') +require 'spec_helper' describe Neography::NodePath do @@ -219,4 +219,4 @@ def create_nodes end end end -end \ No newline at end of file +end diff --git a/spec/integration/node_relationship_spec.rb b/spec/integration/node_relationship_spec.rb index 38e1fd8..aad38ca 100644 --- a/spec/integration/node_relationship_spec.rb +++ b/spec/integration/node_relationship_spec.rb @@ -1,4 +1,4 @@ -require File.join(File.dirname(__FILE__), '..', 'spec_helper') +require 'spec_helper' describe Neography::NodeRelationship do @@ -371,4 +371,4 @@ def create_nodes end end -end \ No newline at end of file +end diff --git a/spec/integration/node_spec.rb b/spec/integration/node_spec.rb index 647b174..1bcdb8e 100644 --- a/spec/integration/node_spec.rb +++ b/spec/integration/node_spec.rb @@ -1,4 +1,4 @@ -require File.join(File.dirname(__FILE__), '..', 'spec_helper') +require 'spec_helper' describe Neography::Node do diff --git a/spec/integration/parsing_spec.rb b/spec/integration/parsing_spec.rb index a73846b..6751a8a 100644 --- a/spec/integration/parsing_spec.rb +++ b/spec/integration/parsing_spec.rb @@ -1,4 +1,4 @@ -require File.join(File.dirname(__FILE__), '..', 'spec_helper') +require 'spec_helper' describe Neography do subject { Neography::Rest.new } @@ -10,4 +10,4 @@ node['data']['text'].should == ':1456' end end -end \ No newline at end of file +end diff --git a/spec/integration/relationship_spec.rb b/spec/integration/relationship_spec.rb index d1e66a7..27d9a58 100644 --- a/spec/integration/relationship_spec.rb +++ b/spec/integration/relationship_spec.rb @@ -1,4 +1,4 @@ -require File.join(File.dirname(__FILE__), '..', 'spec_helper') +require 'spec_helper' describe Neography::Relationship do describe "create relationship" do @@ -34,4 +34,4 @@ end end -end \ No newline at end of file +end diff --git a/spec/integration/rest_batch_spec.rb b/spec/integration/rest_batch_spec.rb index b674050..59855e9 100644 --- a/spec/integration/rest_batch_spec.rb +++ b/spec/integration/rest_batch_spec.rb @@ -1,4 +1,4 @@ -require File.join(File.dirname(__FILE__), '..', 'spec_helper') +require 'spec_helper' describe Neography::Rest do before(:each) do diff --git a/spec/integration/rest_bulk_spec.rb b/spec/integration/rest_bulk_spec.rb index 7211efb..a06458e 100644 --- a/spec/integration/rest_bulk_spec.rb +++ b/spec/integration/rest_bulk_spec.rb @@ -1,4 +1,4 @@ -require File.join(File.dirname(__FILE__), '..', 'spec_helper') +require 'spec_helper' describe Neography::Rest do before(:each) do @@ -103,4 +103,4 @@ end -end \ No newline at end of file +end diff --git a/spec/integration/rest_experimental_spec.rb b/spec/integration/rest_experimental_spec.rb index b04ac27..460dde9 100644 --- a/spec/integration/rest_experimental_spec.rb +++ b/spec/integration/rest_experimental_spec.rb @@ -1,4 +1,4 @@ -require File.join(File.dirname(__FILE__), '..', 'spec_helper') +require 'spec_helper' describe Neography::Rest do before(:each) do @@ -19,4 +19,4 @@ existing_nodes.should_not be_nil end end -end \ No newline at end of file +end diff --git a/spec/integration/rest_gremlin_fail_spec.rb b/spec/integration/rest_gremlin_fail_spec.rb index 34a6ab1..583ee40 100644 --- a/spec/integration/rest_gremlin_fail_spec.rb +++ b/spec/integration/rest_gremlin_fail_spec.rb @@ -1,4 +1,4 @@ -require File.join(File.dirname(__FILE__), '..', 'spec_helper') +require 'spec_helper' describe Neography::Rest do before(:each) do @@ -43,4 +43,4 @@ end -end \ No newline at end of file +end diff --git a/spec/integration/rest_header_spec.rb b/spec/integration/rest_header_spec.rb index fadaffc..3830094 100644 --- a/spec/integration/rest_header_spec.rb +++ b/spec/integration/rest_header_spec.rb @@ -1,4 +1,4 @@ -require File.join(File.dirname(__FILE__), '..', 'spec_helper') +require 'spec_helper' describe Neography::Connection do diff --git a/spec/integration/rest_index_spec.rb b/spec/integration/rest_index_spec.rb index bbf8424..2038b51 100644 --- a/spec/integration/rest_index_spec.rb +++ b/spec/integration/rest_index_spec.rb @@ -1,4 +1,4 @@ -require File.join(File.dirname(__FILE__), '..', 'spec_helper') +require 'spec_helper' describe Neography::Rest do before(:each) do diff --git a/spec/integration/rest_node_spec.rb b/spec/integration/rest_node_spec.rb index 7146049..6022efc 100644 --- a/spec/integration/rest_node_spec.rb +++ b/spec/integration/rest_node_spec.rb @@ -1,4 +1,4 @@ -require File.join(File.dirname(__FILE__), '..', 'spec_helper') +require 'spec_helper' describe Neography::Rest do before(:each) do @@ -245,4 +245,4 @@ end end -end \ No newline at end of file +end diff --git a/spec/integration/rest_path_spec.rb b/spec/integration/rest_path_spec.rb index d432f2e..37806a9 100644 --- a/spec/integration/rest_path_spec.rb +++ b/spec/integration/rest_path_spec.rb @@ -1,4 +1,4 @@ -require File.join(File.dirname(__FILE__), '..', 'spec_helper') +require 'spec_helper' describe Neography::Rest do before(:each) do @@ -228,4 +228,4 @@ end -end \ No newline at end of file +end diff --git a/spec/integration/rest_plugin_spec.rb b/spec/integration/rest_plugin_spec.rb index ec75df7..f089109 100644 --- a/spec/integration/rest_plugin_spec.rb +++ b/spec/integration/rest_plugin_spec.rb @@ -1,4 +1,4 @@ -require File.join(File.dirname(__FILE__), '..', 'spec_helper') +require 'spec_helper' describe Neography::Rest do before(:each) do @@ -64,4 +64,4 @@ end -end \ No newline at end of file +end diff --git a/spec/integration/rest_relationship_spec.rb b/spec/integration/rest_relationship_spec.rb index 1609c9d..73fe00d 100644 --- a/spec/integration/rest_relationship_spec.rb +++ b/spec/integration/rest_relationship_spec.rb @@ -1,4 +1,4 @@ -require File.join(File.dirname(__FILE__), '..', 'spec_helper') +require 'spec_helper' describe Neography::Rest do before(:each) do @@ -346,4 +346,4 @@ end end -end \ No newline at end of file +end diff --git a/spec/integration/rest_traverse_spec.rb b/spec/integration/rest_traverse_spec.rb index f4d3465..715c54b 100644 --- a/spec/integration/rest_traverse_spec.rb +++ b/spec/integration/rest_traverse_spec.rb @@ -1,4 +1,4 @@ -require File.join(File.dirname(__FILE__), '..', 'spec_helper') +require 'spec_helper' describe Neography::Rest do before(:each) do @@ -146,4 +146,4 @@ end -end \ No newline at end of file +end