Sha256: 97d7b356503db32eef44faf01dcdbe4f6551d03d5002f49742978c9bbb269313
Contents?: true
Size: 989 Bytes
Versions: 100
Compression:
Stored size: 989 Bytes
Contents
require 'spec_helper' RSpec.describe RockRMS::Client::WorkflowActionType, type: :model do include_context 'resource specs' describe '#list_workflow_action_types' do it 'returns a array' do resource = client.list_workflow_action_types expect(resource).to be_a(Array) expect(resource.first).to be_a(Hash) end end describe '#find_workflow_action_type(id)' do it 'returns a hash' do expect(client.find_workflow_action_type(2)).to be_a(Hash) end it 'queries groups' do expect(client).to receive(:get).with('WorkflowActionTypes/2') .and_call_original resource = client.find_workflow_action_type(2) expect(resource[:id]).to eq(2) end it 'formats with WorkflowActionType' do response = double expect(RockRMS::Response::WorkflowActionType).to receive(:format).with(response) allow(client).to receive(:get).and_return(response) client.find_workflow_action_type(2) end end end
Version data entries
100 entries across 100 versions & 1 rubygems