Skip to content

Commit

Permalink
[#236] Rename section to team
Browse files Browse the repository at this point in the history
Co-authored-by: Christina Chortaria <[email protected]>
  • Loading branch information
sandbergja and christinach committed Jul 18, 2024
1 parent 55002c5 commit e767235
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions app/models/library_staff_document.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ def library_title
document.library_title
end

def section
document.section
def team
document.team
end

def division
Expand Down Expand Up @@ -89,7 +89,7 @@ def url
end

def doc_keys
[:first_name, :middle_name, :last_name, :netid, :library_title, :phone, :email, :section, :division, :department,
[:first_name, :middle_name, :last_name, :netid, :library_title, :phone, :email, :team, :division, :department,
:unit, :office, :building]
end
end
3 changes: 2 additions & 1 deletion spec/models/library_staff_record_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
expect(results[0].first_name).to eq('Nimbus Kilgore')
expect(results[1].first_name).to eq('Spot Tiberius')
end
it "finds records by other entities" do

it 'finds records by other entities' do
results = described_class.query('Center for Global')
expect(results.length).to eq(1)
expect(results[0].other_entities).to eq('MS Chadha Center for Global India')
Expand Down

0 comments on commit e767235

Please sign in to comment.