Hi,
I’ve just started the second app of the tdd workshop and I’m getting an unexpected rspec failure
Failures:
1) View the homepage learn about the application
Failure/Error: visit root_path
NoMethodError:
undefined method `visit' for #<RSpec::Core::ExampleGroup::Nested_1:0x007fc5e99c6a10>
Integration spec view_homepage_spec.rb
require 'spec_helper'
feature 'View the homepage' do
scenario 'learn about the application' do
visit root_path
expect(page).to have_css 'title', text: 'Hashtag'
expect(page).to have_css '[data-role= "description"]'
end
end
Here’s what’s in routes.rb
Hashtag::Application.routes.draw do
root to: 'high_voltage/pages#show', id: 'homepage'
end
And I have the highvoltage gem in the gemfile. I’ve also created app/views/pages/homepage.html.erb
Any help? Thanks