Proper rspec matchers used in specs.
RuboCop's suggestions implemented.