Myron MarstonJan 14, 2014One of RSpec 3’s big new features is shipping 3.0.0.beta2: composable matchers. This feature supports more powerful, less brittle expectations, and opens up new possibilities. An Example In RSpec 2.x, I’ve written code like this on many occassions: # background_worker.rb class BackgroundWorker attr_reader :queue def initialize @queue = [] end def enqueue(job_data) queue <<
![New in RSpec 3: Composable Matchers](https://cdn-ak-scissors.b.st-hatena.com/image/square/2d100ec33bed63fabefcd663179a1c1647f50bdc/height=288;version=1;width=512/https%3A%2F%2Frspec.info%2Fimages%2Flogo_ogp.png)