Skip to content

Commit

Permalink
Fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
leoapost committed Sep 23, 2024
1 parent df55c90 commit 2dae813
Showing 1 changed file with 24 additions and 23 deletions.
47 changes: 24 additions & 23 deletions spec/features/happy_path_spec.rb
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
require "rails_helper"

RSpec.feature "Happy path", type: :feature do
before do
LocalAuthority::Importer.new.reload!
Hub::Importer.new.reload!
end

let(:expected_hubs_names) do
["Chiltern Teaching School Hub", "Chiltern Teaching School Hub", "Alban Teaching School Hub", "Astra Teaching School Hub, Buckinghamshire", "Cambridgeshire and Peterborough Teaching School Hub"]
end

scenario "Performs search" do
VCR.use_cassette("geocoder") do
visit root_path
expect(page).to have_text("Where do you want to find teaching school hubs?")
fill_in "Where do you want to find teaching school hubs?", with: "Luton"
click_button('Continue')
hubs = all('h2 a').map(&:text)
expect(hubs).to eq(expected_hubs_names)
end
end
end
require "rails_helper"

RSpec.feature "Happy path", type: :feature do
before do
LocalAuthority::Importer.new.reload!
Hub::Importer.new.reload!
end

let(:expected_hubs_names) do
["Chiltern Teaching School Hub", "Chiltern Teaching School Hub", "Alban Teaching School Hub",
"Astra Teaching School Hub, Buckinghamshire", "Cambridgeshire and Peterborough Teaching School Hub"]
end

scenario "Performs search" do
VCR.use_cassette("geocoder") do
visit root_path
expect(page).to have_text("Where do you want to find teaching school hubs?")
fill_in "Where do you want to find teaching school hubs?", with: "Luton"
click_button('Continue')
hubs = all('h2 a').map(&:text)
expect(hubs).to eq(expected_hubs_names)
end
end
end

0 comments on commit 2dae813

Please sign in to comment.