I have been working on a project recently where modules are used extensively to share behaviour between model classes. I was looking to use an example from the system but they were all overly complex and detracted from the subject - testing modules. So in the following contrived example I will show you how to test the behavior of a module using rspec. The following “Pointless” module adds a class method which will scramble a class name…. doesn’t get more pointless than that!