This file contains hidden or 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
| # 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 |