uclibs / staff-directory-23

1 stars 0 forks source link

Increase test coverage #83

Closed hortongn closed 7 months ago

hortongn commented 10 months ago

Coveralls is indicating we need a test to cover the @employees = Employee.all line in app/controllers/public_controller.rb.

haitzlm commented 7 months ago

I think this has been completed with this block the spec test: it 'assigns all employees to @employees' do FactoryBot.create(:department) employee = FactoryBot.create(:employee) get :index expect(assigns(:employees)).to eq([employee]) end