Removed deprecated rspec matchers and used :expect