Sha256: 695465e0865dd07b220f09770beaff9657049501a25d7e2e2957c4734cb6b650
Contents?: true
Size: 666 Bytes
Versions: 20
Compression:
Stored size: 666 Bytes
Contents
# frozen_string_literal: true RSpec.describe Mutant::Result do let(:object) do Class.new do include Mutant::Result, Concord.new(:runtime, :killtime) def collection [[1]] end sum :length, :collection end.new(3.0, 1.0) end describe '.included' do it 'includes mixin to freeze instances' do expect(object.frozen?).to be(true) end it 'it makes DSL methods from Mutant::Result available' do expect(object.length).to be(1) end end describe '#overhead' do subject { object.overhead } it 'returns difference between runtime and killtime' do should eql(2.0) end end end
Version data entries
20 entries across 20 versions & 1 rubygems