motion-kit/motion-kit — pull request #38 by jamonholmgren (2014-06-14 00:17:15+00:00)
Title: Refactored constraints_layout.rb to reduce duplicated code.

I created a single method that works for most of the constraints. `above`, `below`, `before`, `after` are somewhat different so I didn't refactor those. They could probably be moved into another common method as well, but probably not worth it.