Skip to content

Commit

Permalink
Change spec_helper File requires to simpler requires.
Browse files Browse the repository at this point in the history
  • Loading branch information
rdvdijk committed Sep 28, 2012
1 parent 485c1e9 commit e59c8e9
Show file tree
Hide file tree
Showing 19 changed files with 36 additions and 36 deletions.
4 changes: 2 additions & 2 deletions spec/integration/authorization_spec.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -45,4 +45,4 @@
end
end

end
end
8 changes: 4 additions & 4 deletions spec/integration/index_spec.rb
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
require File.join(File.dirname(__FILE__), '..', 'spec_helper')
require 'spec_helper'

describe Neography::Index do

it "can add a node to an index" do
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
Expand All @@ -17,5 +17,5 @@
value = generate_text
r.add_to_index("relationship_test_index", key, value)
end
end

end
4 changes: 2 additions & 2 deletions spec/integration/neography_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__), '..', 'spec_helper')
require 'spec_helper'

describe Neography do
describe "ref_node" do
Expand All @@ -7,4 +7,4 @@
root_node.should have_key("self")
end
end
end
end
4 changes: 2 additions & 2 deletions spec/integration/node_path_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__), '..', 'spec_helper')
require 'spec_helper'

describe Neography::NodePath do

Expand Down Expand Up @@ -219,4 +219,4 @@ def create_nodes
end
end
end
end
end
4 changes: 2 additions & 2 deletions spec/integration/node_relationship_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__), '..', 'spec_helper')
require 'spec_helper'

describe Neography::NodeRelationship do

Expand Down Expand Up @@ -371,4 +371,4 @@ def create_nodes
end
end

end
end
2 changes: 1 addition & 1 deletion spec/integration/node_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__), '..', 'spec_helper')
require 'spec_helper'

describe Neography::Node do

Expand Down
4 changes: 2 additions & 2 deletions spec/integration/parsing_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__), '..', 'spec_helper')
require 'spec_helper'

describe Neography do
subject { Neography::Rest.new }
Expand All @@ -10,4 +10,4 @@
node['data']['text'].should == ':1456'
end
end
end
end
4 changes: 2 additions & 2 deletions spec/integration/relationship_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__), '..', 'spec_helper')
require 'spec_helper'

describe Neography::Relationship do
describe "create relationship" do
Expand Down Expand Up @@ -34,4 +34,4 @@
end
end

end
end
2 changes: 1 addition & 1 deletion spec/integration/rest_batch_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__), '..', 'spec_helper')
require 'spec_helper'

describe Neography::Rest do
before(:each) do
Expand Down
4 changes: 2 additions & 2 deletions spec/integration/rest_bulk_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__), '..', 'spec_helper')
require 'spec_helper'

describe Neography::Rest do
before(:each) do
Expand Down Expand Up @@ -103,4 +103,4 @@

end

end
end
4 changes: 2 additions & 2 deletions spec/integration/rest_experimental_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__), '..', 'spec_helper')
require 'spec_helper'

describe Neography::Rest do
before(:each) do
Expand All @@ -19,4 +19,4 @@
existing_nodes.should_not be_nil
end
end
end
end
4 changes: 2 additions & 2 deletions spec/integration/rest_gremlin_fail_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__), '..', 'spec_helper')
require 'spec_helper'

describe Neography::Rest do
before(:each) do
Expand Down Expand Up @@ -43,4 +43,4 @@
end


end
end
2 changes: 1 addition & 1 deletion spec/integration/rest_header_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__), '..', 'spec_helper')
require 'spec_helper'

describe Neography::Connection do

Expand Down
2 changes: 1 addition & 1 deletion spec/integration/rest_index_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__), '..', 'spec_helper')
require 'spec_helper'

describe Neography::Rest do
before(:each) do
Expand Down
4 changes: 2 additions & 2 deletions spec/integration/rest_node_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__), '..', 'spec_helper')
require 'spec_helper'

describe Neography::Rest do
before(:each) do
Expand Down Expand Up @@ -245,4 +245,4 @@
end
end

end
end
4 changes: 2 additions & 2 deletions spec/integration/rest_path_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__), '..', 'spec_helper')
require 'spec_helper'

describe Neography::Rest do
before(:each) do
Expand Down Expand Up @@ -228,4 +228,4 @@
end


end
end
4 changes: 2 additions & 2 deletions spec/integration/rest_plugin_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__), '..', 'spec_helper')
require 'spec_helper'

describe Neography::Rest do
before(:each) do
Expand Down Expand Up @@ -64,4 +64,4 @@

end

end
end
4 changes: 2 additions & 2 deletions spec/integration/rest_relationship_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__), '..', 'spec_helper')
require 'spec_helper'

describe Neography::Rest do
before(:each) do
Expand Down Expand Up @@ -346,4 +346,4 @@
end
end

end
end
4 changes: 2 additions & 2 deletions spec/integration/rest_traverse_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__), '..', 'spec_helper')
require 'spec_helper'

describe Neography::Rest do
before(:each) do
Expand Down Expand Up @@ -146,4 +146,4 @@

end

end
end

0 comments on commit e59c8e9

Please sign in to comment.