Skip to content

Commit

Permalink
More cross-module calling
Browse files Browse the repository at this point in the history
  • Loading branch information
cheerfulstoic committed Sep 14, 2014
1 parent eb75d22 commit 9f4f58d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spec/unit/persistance_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
node.should_receive(:props).and_return(name: 'kalle2', age: '43')
session.should_receive(:create_node).with({name: 'kalle', age: 42}, :MyClass).and_return(node)
clazz.any_instance.should_receive(:init_on_load).with(node, age: "43", name: "kalle2")
clazz.should_receive(:id_property_info)
o.save
end

Expand Down Expand Up @@ -76,6 +77,8 @@
expect(o).to receive(:init_on_load).with(node, end_props)
expect(node).to receive(:props).and_return(end_props)

expect(clazz).to receive(:id_property_info)

o.save
end
end
Expand Down

0 comments on commit 9f4f58d

Please sign in to comment.