Skip to content

Commit

Permalink
Normalize line endings in hub_spec.rb to Unix (LF)
Browse files Browse the repository at this point in the history
  • Loading branch information
leoapost committed Sep 19, 2024
1 parent 4ac4f81 commit 9c659a8
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions spec/models/hub_spec.rb
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
RSpec.describe Hub, type: :model do
before do
LocalAuthority::Importer.new.reload!
Hub::Importer.new.reload!
end

let(:authorities) { ["Birmingham South", "Birmingham North", "Sandwell", "Dudley", "Bromsgrove", "Wyre Forest"] }
let(:hub_names) do
["Star Teaching School Hub Birmingham South", "Arthur Terry Teaching School Hub - North Birmingham",
"Haybridge Teaching School Hub", "Tudor Grange Teaching School Hub", "Prince Henry's Teaching School Hub"]
end

it "sorts results by distance" do
expect(described_class.by_local_authority(*authorities).map(&:name)).to eq(hub_names)
end
end
RSpec.describe Hub, type: :model do
before do
LocalAuthority::Importer.new.reload!
Hub::Importer.new.reload!
end

let(:authorities) { ["Birmingham South", "Birmingham North", "Sandwell", "Dudley", "Bromsgrove", "Wyre Forest"] }
let(:hub_names) do
["Star Teaching School Hub Birmingham South", "Arthur Terry Teaching School Hub - North Birmingham",
"Haybridge Teaching School Hub", "Tudor Grange Teaching School Hub", "Prince Henry's Teaching School Hub"]
end

it "sorts results by distance" do
expect(described_class.by_local_authority(*authorities).map(&:name)).to eq(hub_names)
end
end

0 comments on commit 9c659a8

Please sign in to comment.