Created
January 20, 2015 14:17
-
-
Save danlynn/06e2b30228e62c4cb168 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# test failed create due to validation | |
require 'awesome_print' # support 'ap' | |
sli = nil | |
Octopus.using(LassoDbSharding.key(ShoppingListItem, Retailer.find(767))) do | |
ap sli = ShoppingListItem.create() | |
ap sli.errors | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The trick is to force the execution within the using() block.