Getting error while running bundle exec rspec spec/requests/static_pages_spec.rb in Rails

I am following this article where I can written this code in this ruby file below and home page does have sample app, but it still says static pages home page should have content 'Sample App' when I run bundle exec rspec spec/requests/static_pages_spec.rb

spec/requests/static_pages_spec file code: