When spec-ing something that calls method which takes a set of nested hashes (as many Rails methods do), it may be tempting to use #hash_including: to test for only the values you care about. However #hash_including wonât work the way we might hope for nested hashes. Take the following (highly contrived) example: describe CoffeeMaker do before :each do @it = CoffeeMaker.new end it "should receive
{{#tags}}- {{label}}
{{/tags}}