Skip to content

Commit

Permalink
remove tests for deprecated method
Browse files Browse the repository at this point in the history
these tests are a direct copy of those for the method delegated to. skip 'em.
  • Loading branch information
tamsin johnson committed Apr 30, 2021
1 parent fea0ea8 commit 3963182
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions spec/presenters/hyrax/work_show_presenter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -239,19 +239,6 @@
end
end

describe "#member_presenters_for" do
let(:obj) { create(:work_with_file_and_work) }
let(:attributes) { obj.to_solr }
let(:items) { presenter.ordered_ids }
let(:subject) { presenter.member_presenters_for(items) }

it "returns appropriate classes for each item" do
expect(subject.size).to eq 2
expect(subject.first).to be_instance_of(Hyrax::FileSetPresenter)
expect(subject.last).to be_instance_of(described_class)
end
end

describe "#list_of_item_ids_to_display" do
let(:subject) { presenter.list_of_item_ids_to_display }
let(:items_list) { (0..9).map { |i| "item#{i}" } }
Expand Down

0 comments on commit 3963182

Please sign in to comment.