Open awead opened 8 years ago
See past integration testing here: https://github.com/projecthydra/sufia/blob/821fa7111865272b8130dccd62f9ce05e0d6a975/spec/helpers/blacklight_helper_spec.rb
And discussion here: https://github.com/projecthydra/sufia/issues/2341
I don't think we want to test the index_presenter. That is already well tested. If you want to do integration testing, you must call sufia code, not Blacklight code, otherwise there is no integration.
arg[:config][:field_name]
, for example. itemprop
field.label
iconify_auto_link
, link_to_search
, index_field_link
, rights_statement_links
, human_readable_date
I agree w/ Justin that an integration test is warranted, but I'll take the old helper test as a provisional measure.
Also check fields' if
and unless
clauses.
Descriptive summary
We're using Blacklight's
index_presenter
and ought to have a minimal feature test that ensures it's doing what we need it to do. Namely, this would include:Other?