Sha256: 97f4978ff3d1324379c25525c709fcfe85ee8cd11c8bf7e76477e627311a0253
Contents?: true
Size: 693 Bytes
Versions: 10
Compression:
Stored size: 693 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' describe Dor::WorkflowService do before :each do @logger1 = double('Logger') allow(Dor::WorkflowService).to receive(:default_logger).and_return(@logger1) end describe '#configure' do it 'pulls default_logger if not specified' do expect(Dor::WorkflowService).to receive(:default_logger).and_return(@logger1) Dor::WorkflowService.configure('https://dortest.stanford.edu/workflow') end it 'accepts :logger if specified' do expect(Dor::WorkflowService).not_to receive(:default_logger) Dor::WorkflowService.configure('https://dortest.stanford.edu/workflow', logger: @logger1) end end end
Version data entries
10 entries across 10 versions & 1 rubygems