I am using the mentioned configuration and created feature in folder spec/features But I am still getting visit undefined method error. Here is the code.
require 'spec_helper'
describe 'view list of movies' do
it 'shows movie list' do
visit 'http://localhost:3000/movies'
expect(page).to have_text('2 movies')
end
end
This results in following error.
undefined method `visit' for #<RSpec::ExampleGroups:view list of movies:
Any suggestions appreciated. I created this question as I tried all the possible solutions mentioned in those 4 questions but none of them worked.