Sha256: 15aacaa44ba398a00ef486c8dbe060067c19de4a2e977a2aa04a08f53c4e60a4
Contents?: true
Size: 880 Bytes
Versions: 3
Compression:
Stored size: 880 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe Neo4jr::RelationshipType do it 'converts a string into a RelationshipType' do Neo4jr::RelationshipType.instance('worked_in').should be_is_a(Neo4jr::RelationshipType) end it 'converts multiople types into an typed array of RelationshipType' do relationship_types = Neo4jr::RelationshipType.instances('worked_in', 'acted_in') relationship_types.size.should == 2 relationship_types[0].should be_is_a(Neo4jr::RelationshipType) relationship_types[1].should be_is_a(Neo4jr::RelationshipType) end it 'can covert one relationship type to a java array so it can be used with the neo4j API' do relationship_type = Neo4jr::RelationshipType.instance('worked_in') relationship_type.to_a.class.java_class.to_s.should == '[Lorg.neo4j.api.core.RelationshipType;' end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
neo4jr-simple-0.1.7 | spec/relationship_type_spec.rb |
neo4jr-simple-0.1.6 | spec/relationship_type_spec.rb |
neo4jr-simple-0.1.5 | spec/relationship_type_spec.rb |