Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
# frozen_string_literal: true
require 'spec_helper'
feature 'Visiting the index page' do
background(:each) do
VCR.use_cassette(:wikipedia_response) do
visit '/'
end
end
scenario 'the page loads successfully' do
expect(page.status_code).to eq(200)
end
scenario 'the main page header is displayed' do
expect(page.body).to have_css('h1#main', text: 'Hi, little Aardvark!')
end
scenario 'ant-related data is displayed' do
expect(page.body).to include('"title":"Ant"')
end
end