lotus/model — pull request #58 by benaskins (2014-09-08 04:44:31+00:00)
Title: When called with an already persisted entity, Lotus::Repository#persist does not return the entity

When calling Lotus::Repository#persist with a persisted entity, the return value is not that entity.

For the SqlAdapter the value ```1``` is always returned.

For the MemoryAdapter a hash of the entities attributes is returned.

Test output below:

```
1) Failure:
Lotus::Repository::with sql adapter::.persist::when passed a persisted entity#test_0001_should return that entity [/Users/benaskins/Development/lotus_model/test/repository_test.rb:48]:
--- expected
+++ actual
@@ -1 +1 @@
-#
+1

2) Failure:
Lotus::Repository::with memory adapter::.persist::when passed a persisted entity#test_0001_should return that entity [/Users/benaskins/Development/lotus_model/test/repository_test.rb:48]:
--- expected
+++ actual
@@ -1 +1 @@
-#
+{:id=>1, :name=>"S", :age=>nil}
```

Before I attempt to write a patch, can you confirm whether or not this is expected behaviour?