Sha256: 82b1a3a5c75c7744091e7beae07b0853a569fdaee03b896cb352a06d2059b3ec

Contents?: true

Size: 404 Bytes

Versions: 8

Compression:

Stored size: 404 Bytes

Contents

require 'spec_helper'

RSpec.describe Hyrax::Admin::WorkflowRolePresenter do
  let(:presenter) { described_class.new(workflow_role) }
  let(:role) { Sipity::Role[:depositor] }
  let(:workflow) { create(:workflow) }
  let(:workflow_role) { Sipity::WorkflowRole.new(role: role, workflow: workflow) }

  describe '#label' do
    subject { presenter.label }

    it { is_expected.to be_a(String) }
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
hyrax-1.1.1 spec/presenters/hyrax/admin/workflow_role_presenter_spec.rb
hyrax-1.1.0 spec/presenters/hyrax/admin/workflow_role_presenter_spec.rb
hyrax-1.0.5 spec/presenters/hyrax/admin/workflow_role_presenter_spec.rb
hyrax-1.0.4 spec/presenters/hyrax/admin/workflow_role_presenter_spec.rb
hyrax-1.0.3 spec/presenters/hyrax/admin/workflow_role_presenter_spec.rb
hyrax-1.0.2 spec/presenters/hyrax/admin/workflow_role_presenter_spec.rb
hyrax-1.0.1 spec/presenters/hyrax/admin/workflow_role_presenter_spec.rb
hyrax-1.0.0.rc2 spec/presenters/hyrax/admin/workflow_role_presenter_spec.rb