spec/unit/mutest/context_spec.rb in mutest-0.0.3 vs spec/unit/mutest/context_spec.rb in mutest-0.0.4

- old
+ new

@@ -108,9 +108,19 @@ ) end end end + describe '#source_path' do + let(:source_file) do + instance_double(Mutest::SourceFile, path: instance_double(Pathname)) + end + + it 'exposes source file path' do + expect(described_class.new(scope, source_file).source_path).to be(source_file.path) + end + end + describe '#ignore?' do let(:object) do described_class.new(scope, source_file) end