rspec-its is a useful gem that used to be part of rspec. It gives you the syntax to refer to methods or keys on the subject like so:
rspec-its
subject
its(:foo) { should eq("bar") }
eq
contain_exactly
match_array
There was an error while loading. Please reload this page.