I was reading Practical Objected-Oriented Design With Ruby other day and Sandi Metz came up with a good and reasonable approach of how to deal with Roles (by role I mean Concerns
and overall duck typing stuff) specs.
- The Role itself should be tested with a test's built-in player. Ex.:
let(:mergeable_class) do
Class.new do
include Mergeable
# ...