Sha256: ef8cc2e6628fe98d1bae0a00e1e52e5de36b5a23683d3e649e2d42cdac7c54b1

Contents?: true

Size: 427 Bytes

Versions: 23

Compression:

Stored size: 427 Bytes

Contents

describe 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

23 entries across 23 versions & 1 rubygems

Version Path
devtools-0.1.26 spec/unit/devtools/flay/scale/flay_report_spec.rb
devtools-0.1.25 spec/unit/devtools/flay/scale/flay_report_spec.rb
devtools-0.1.24 spec/unit/devtools/flay/scale/flay_report_spec.rb
devtools-0.1.23 spec/unit/devtools/flay/scale/flay_report_spec.rb
devtools-0.1.22 spec/unit/devtools/flay/scale/flay_report_spec.rb
devtools-0.1.21 spec/unit/devtools/flay/scale/flay_report_spec.rb
devtools-0.1.20 spec/unit/devtools/flay/scale/flay_report_spec.rb
devtools-0.1.19 spec/unit/devtools/flay/scale/flay_report_spec.rb
devtools-0.1.18 spec/unit/devtools/flay/scale/flay_report_spec.rb
devtools-0.1.16 spec/unit/devtools/flay/scale/flay_report_spec.rb
devtools-0.1.15 spec/unit/devtools/flay/scale/flay_report_spec.rb
devtools-0.1.14 spec/unit/devtools/flay/scale/flay_report_spec.rb
devtools-0.1.13 spec/unit/devtools/flay/scale/flay_report_spec.rb
devtools-0.1.12 spec/unit/devtools/flay/scale/flay_report_spec.rb
devtools-0.1.11 spec/unit/devtools/flay/scale/flay_report_spec.rb
devtools-0.1.10 spec/unit/devtools/flay/scale/flay_report_spec.rb
devtools-0.1.9 spec/unit/devtools/flay/scale/flay_report_spec.rb
devtools-0.1.8 spec/unit/devtools/flay/scale/flay_report_spec.rb
devtools-0.1.7 spec/unit/devtools/flay/scale/flay_report_spec.rb
devtools-0.1.6 spec/unit/devtools/flay/scale/flay_report_spec.rb