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