Refactor testing schema definition into helper
Allow `has_schema_attributes` to take a Ruby-based schema hash
Merge pull request #5 from anicholson/has_schema_attributes_can_use_ruby_hash

has_schema_attributes should accept schema from Ruby hash