Sha256: 29e447425169f932bfbbedc483bbaab9c9c2dfea6e1b66ed07dc7ee5420340fc

Contents?: true

Size: 482 Bytes

Versions: 14

Compression:

Stored size: 482 Bytes

Contents

module Sipity
  RSpec.describe Workflow, type: :model, no_clean: true do
    subject { described_class }
    its(:column_names) { is_expected.to include('name') }

    context '#initial_workflow_state' do
      subject { described_class.new(name: 'ETD Workflow') }
      it 'will create a state if one does not exist' do
        subject.save!
        expect { subject.initial_workflow_state }
          .to change { subject.workflow_states.count }.by(1)
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
curation_concerns-1.7.8 spec/models/sipity/workflow_spec.rb
curation_concerns-1.7.7 spec/models/sipity/workflow_spec.rb
curation_concerns-2.0.0 spec/models/sipity/workflow_spec.rb
curation_concerns-2.0.0.rc2 spec/models/sipity/workflow_spec.rb
curation_concerns-1.7.6 spec/models/sipity/workflow_spec.rb
curation_concerns-1.7.5 spec/models/sipity/workflow_spec.rb
test_hyrax-0.0.1.alpha spec/models/sipity/workflow_spec.rb
curation_concerns-1.7.4 spec/models/sipity/workflow_spec.rb
curation_concerns-1.7.3 spec/models/sipity/workflow_spec.rb
curation_concerns-1.7.2 spec/models/sipity/workflow_spec.rb
curation_concerns-2.0.0.rc1 spec/models/sipity/workflow_spec.rb
curation_concerns-1.7.1 spec/models/sipity/workflow_spec.rb
curation_concerns-1.7.0 spec/models/sipity/workflow_spec.rb
curation_concerns-1.7.0.beta1 spec/models/sipity/workflow_spec.rb