Sha256: 7123c9d02fcb026b8ef8e2332b1e37e4cee38a55d374c04227690a7623d007fe

Contents?: true

Size: 465 Bytes

Versions: 4

Compression:

Stored size: 465 Bytes

Contents

require_relative '../../spec_helper'

require_relative '../../../lib/reek/cli/options'
require_relative '../../../lib/reek/report/report'

RSpec.describe Reek::CLI::OptionInterpreter do
  let(:options) { OpenStruct.new }
  let(:instance) { Reek::CLI::OptionInterpreter.new(options) }

  describe '#reporter' do
    it 'returns a Report::TextReport instance by default' do
      expect(instance.reporter).to be_instance_of Reek::Report::TextReport
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
reek-3.0.3 spec/reek/cli/option_interpreter_spec.rb
reek-3.0.2 spec/reek/cli/option_interpreter_spec.rb
reek-3.0.1 spec/reek/cli/option_interpreter_spec.rb
reek-3.0.0 spec/reek/cli/option_interpreter_spec.rb