RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Testing "shape" of data and nested data structures

When testing code that integrates with DBs and JSON APIs I often don’t really care about attributes like id, created_at but still have to assert on them, or filter them out. See a different way: http://wojtekmach.pl/blog/2015/07/17/testing-shape-of-data/

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in