Permalink
Browse files

Rename relationships method to relationships!

This method has side effects (saves data in database).
  • Loading branch information...
1 parent 2fe76c0 commit 2c0c36da07dceebccc5a6d8764f16de8329c1f78 @Stanley committed Sep 15, 2011
Showing with 4 additions and 4 deletions.
  1. +1 −1 lib/bagatela/graph/import.rb
  2. +3 −3 spec/models/graph/import_spec.rb
@@ -19,7 +19,7 @@ def self.nodes!(db, group=false, inserter=nil)
# date - [Time]:
#
# Returns Array of Graph::Connections
- def self.relationships(db, group_stops=false, date=Time.now)
+ def self.relationships!(db, group_stops=false, date=Time.now)
inserter = Neo4j::Batch::Inserter.new
stops = nodes!(db, group_stops, inserter)
@@ -36,7 +36,7 @@
end
end
- @relationships = Import.relationships(source)
+ @relationships = Import.relationships!(source)
end
it "should return an array" do
@@ -72,7 +72,7 @@
end
end
- @relationships = Import.relationships(source, true)
+ @relationships = Import.relationships!(source, true)
end
it "should create a new node" do
@@ -111,7 +111,7 @@
end
end
- @relationships = Import.relationships(source)
+ @relationships = Import.relationships!(source)
end
describe "relationship" do

0 comments on commit 2c0c36d

Please sign in to comment.