Skip to content

Instantly share code, notes, and snippets.

# A shoulda macro for verifying a class has the writer attribute readers,
# writers and accessors. NOTE: I could be silly for wanting this. But it was
# there. So here it is.
#
# (c) Copyright 2009 Adam Keys. MIT license.
module AccessorMacros
def should_have_reader(name)
should "have an attribute reader for #{name.to_s}" do