Skip to content

Commit

Permalink
bump version, test for primary key inheritance
Browse files Browse the repository at this point in the history
  • Loading branch information
subvertallchris committed Jan 30, 2015
1 parent 7ab96ca commit 05079b9
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
== 4.1.2
* Fixes two bugs related to inheritance: one regarding ActiveRel classes and relationship types, the other regarding ActiveNode primary_key properties not being set when a model is loaded prior to Neo4j session.

== 4.1.1
* Switches use of Fixnum to Integer to improve 32-bit support

== 4.1.0
This release includes many performance fixes and new features. The most notable:
* Huge stylist cleanup/refactoring by Brian on the entire gem by Brian armed with Rubocop. See http://neo4jrb.io/blog/2014/12/29/stay-out-of-trouble.html.
Expand Down
2 changes: 1 addition & 1 deletion lib/neo4j/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Neo4j
VERSION = '4.1.1'
VERSION = '4.1.2'
end
23 changes: 23 additions & 0 deletions spec/e2e/id_property_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -327,5 +327,28 @@ class Apple < Fruit; end
it 'works without conf specified' do
expect(IdProp::Apple.create.my_id).not_to be_nil
end

context 'when a session is not started' do
it 'waits until the session is loaded, then sets id property' do
Neo4j::Session.current.close

module IdProp
class Executive
include Neo4j::ActiveNode
id_property :my_id, on: :my_method

def my_method
'an id'
end
end

class CEO < Executive; end
end

expect(IdProp::CEO.primary_key).to be_nil
create_session
expect(IdProp::CEO.primary_key).not_to be_nil
end
end
end
end

0 comments on commit 05079b9

Please sign in to comment.