otwarchive-symphonyarchive/spec/controllers/people_controller_spec.rb
2026-03-11 22:22:11 +00:00

12 lines
340 B
Ruby

require "spec_helper"
describe PeopleController do
let(:collection) { create(:collection) }
describe "GET #index" do
it "assigns subtitle with collection title and people" do
get :index, params: { collection_id: collection.name }
expect(assigns[:page_subtitle]).to eq("#{collection.title} - People")
end
end
end