I'm quite surprised that there's not much out there when I google 'rspec attr_accessor'

The best I've found (not tried) is:
https://gist.github.com/daronco/4133411#file-have_attr_accessor-rb

Or (only does attr_accessor):
http://stackoverflow.com/questions/24434381/ruby-rspec-how-should-i-be-testing-attr-accessor

What's the DRY way to write specs for methods created with attr_(accessor|writer|reader)?

(Note, this is not rails)

Cheers,
Tom

--
You received this message because you are subscribed to the Google Groups "Ruby or 
Rails Oceania" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/rails-oceania.
For more options, visit https://groups.google.com/d/optout.

Reply via email to