otwarchive-symphonyarchive/spec/controllers/people_controller_spec.rb

13 lines
340 B
Ruby
Raw Permalink Normal View History

2026-03-11 22:22:11 +00:00
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