Skip to content

Commit

Permalink
Merge branch '7.0.x' into model_label_map_fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cheerfulstoic committed Jul 12, 2016
2 parents cc73e0a + fd96dfa commit 392db8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/unit/active_node/labels_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,11 @@ class Event < URL
classes = [Event, URL, DataSource::URL, DataSource::Event]

# TODO: not sure why this is not being called when the class is defined
classes.reverse.each {|c| Neo4j::ActiveNode::Labels.add_wrapped_class(c)}
classes.reverse_each { |c| Neo4j::ActiveNode::Labels.add_wrapped_class(c) }

classes.each do |c|
labels = c.mapped_label_names
model = Neo4j::ActiveNode::Labels::model_for_labels(labels)
model = Neo4j::ActiveNode::Labels.model_for_labels(labels)
expect(model).to eq(c)
end
end
Expand Down

0 comments on commit 392db8b

Please sign in to comment.