Skip to content

Commit

Permalink
Add test to make sure member_presenters gets the right class
Browse files Browse the repository at this point in the history
  • Loading branch information
hackartisan committed Aug 19, 2016
1 parent 1760622 commit 4c0450e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions spec/presenters/sufia/work_show_presenter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,14 @@
it { is_expected.to be true }
end
end

describe "#member_presenters" do
let(:work) { build(:work_with_one_file) }
let(:ability) { double "Ability" }

it "returns appropriate classes for each" do
expect(presenter.member_presenters.size).to eq 1
expect(presenter.member_presenters.first).to be_instance_of(::Sufia::FileSetPresenter)
end
end
end

0 comments on commit 4c0450e

Please sign in to comment.