Sha256: 7c09a5f80cf71670f934f44ef53f8d58a31ea3fb4d4d0fb9518b34ec949ccdb5
Contents?: true
Size: 721 Bytes
Versions: 5
Compression:
Stored size: 721 Bytes
Contents
require File.expand_path("../spec_helper", __FILE__) describe "OrientDB" do describe "Graph Database" do before do @database = OrientDB::OrientGraph.new("local:#{TEST_DB_PATH}/graph").create begin @topper = @database.add_vertex(nil) @topper.set_property("name", "Topper") @ben = @database.add_vertex(nil) @ben.set_property("name", "Ben") @topper_knows_ben = @database.add_edge(null, @topper, @ben, "knows") @database.stop_transaction(Conclusion.SUCCESS) rescue @database.stop_transaction(Conclusion.FAILURE) end end after do if @database @database.drop @database.close end end end end
Version data entries
5 entries across 5 versions & 1 rubygems