spec/unit/mutant/subject_spec.rb in mutant-0.8.24 vs spec/unit/mutant/subject_spec.rb in mutant-0.9.0

- old
+ new

@@ -14,11 +14,17 @@ ] end end end - let(:object) { class_under_test.new(context, node) } + let(:object) do + class_under_test.new( + context: context, + node: node, + warnings: warnings + ) + end let(:node) do Unparser.parse(<<-RUBY) def foo end @@ -29,9 +35,11 @@ double( 'Context', source_path: 'source_path' ) end + + let(:warnings) { instance_double(Mutant::Warnings) } describe '#identification' do subject { object.identification } it { should eql('SubjectA:source_path:1') }