After adding Jasmine to the Gemfile and running the view_homepage_spec, I’m getting this error,
- View the homepage learn about the application
Failure/Error: expect(page).to have_css ‘title’, text: 'Hashtag’
expected css “title” with text “Hashtag” to return something
# ./spec/integration/view_homepage_spec.rb:6:in `block (2 levels) in <top (required)>' # ./spec/support/searcher.rb:4:in `block (2 levels) in <top (required)>'
However my app/views/layouts/application.html.erb contains the following,
This is the only change in view_homepage_spec.rb
scenario 'learn about the application', js: true do
The spec passes fine without adding the js. What am I missing?