-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Normalize line endings in hub_spec.rb to Unix (LF)
- Loading branch information
Showing
1 changed file
with
16 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |