Sha256: cbfdb5248a76938a41766aec8687c3fcccf057ca678a12e8fbbe9332f66b8cac
Contents?: true
Size: 829 Bytes
Versions: 7
Compression:
Stored size: 829 Bytes
Contents
describe Sufia::Workflow::WorkflowByAdminSetStrategy, :no_clean do context "when using default workflow strategy" do let(:workflow_strategy) { described_class.new(nil, {}) } describe '#workflow_name' do subject { workflow_strategy.workflow_name } it { is_expected.to eq 'default' } end end context "when using a non-default workflow strategy" do let!(:admin_set) { AdminSet.create(title: ["test"]) } let!(:permission_template) { Sufia::PermissionTemplate.create(workflow_name: workflow_name, admin_set_id: admin_set.id) } let(:workflow_name) { 'work' } let(:workflow_strategy) { described_class.new(nil, admin_set_id: admin_set.id) } describe '#workflow_name' do subject { workflow_strategy.workflow_name } it { is_expected.to eq workflow_name } end end end
Version data entries
7 entries across 7 versions & 1 rubygems