Files
grecia/spec/components/admin/stats/event_links_component_spec.rb
Javi Martín b5d12959a0 Add a chart showing all events in admin stats
Not sure it's useful, but it makes the main admin stats page a bit more
interesting.
2024-05-09 14:28:32 +02:00

17 lines
452 B
Ruby

require "rails_helper"
describe Admin::Stats::EventLinksComponent do
it "renders a list of links" do
render_inline Admin::Stats::EventLinksComponent.new(
%w[legislation_annotation_created legislation_answer_created]
)
expect(page).to have_link count: 2
page.find("ul") do |list|
expect(list).to have_link "Legislation annotations created"
expect(list).to have_link "Legislation answers created"
end
end
end