Sha256: 1bbc8d9e13c31edd99b9d4345a8e5fa35246ed61ce7f60bd9cc15fbb34941556

Contents?: true

Size: 455 Bytes

Versions: 2

Compression:

Stored size: 455 Bytes

Contents

# encoding: UTF-8

describe Central::Devtools::Flay::Scale, '#flay_report' do
  subject(:instance) { described_class.new(minimum_mass: 0, files: []) }

  let(:flay) do
    instance_double(::Flay, process: nil, analyze: nil, masses: {})
  end

  before do
    allow(::Flay).to receive(:new).with(mass: 0).and_return(flay)
  end

  specify do
    allow(flay).to receive(:report)
    instance.flay_report
    expect(flay).to have_received(:report)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
central-devtools-0.8.4 spec/unit/central/devtools/flay/scale/flay_report_spec.rb
central-devtools-0.8.3 spec/unit/central/devtools/flay/scale/flay_report_spec.rb