Skip to content

Commit

Permalink
Fix specs
Browse files Browse the repository at this point in the history
  • Loading branch information
hunchr committed Aug 21, 2024
1 parent 62d0736 commit 80b2a84
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
11 changes: 0 additions & 11 deletions spec/domain/table_displays/resolving_column_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,6 @@
let(:person) { people(:admin).tap { |p| allow(p).to receive(:membership_years).and_return(3) } }
end

it_behaves_like "table display", {
column: :data_quality,
header: "Datenqualität",
value: "", # is icon
permission: :show
} do
let(:person) do
people(:admin).tap { |p| allow(p).to receive(:data_quality).and_return("info") }
end
end

it_behaves_like "table display", {
column: :sac_remark_national_office,
header: "Bemerkungen Geschäftsstelle",
Expand Down
8 changes: 8 additions & 0 deletions spec/features/people/list_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,12 @@
expect(page).to have_text("Bemerkungen Sektion 1")
end
end

it "allows showing the data_quality column" do
visit group_people_path(group_id: group.id)
click_link("Spalten")
check("Datenqualität")
click_link("Spalten")
expect(page).to have_css('td[data-attribute-name="data_quality"]')
end
end

0 comments on commit 80b2a84

Please sign in to comment.