Sha256: e9bf41ae2b3b88fc6270143be3a03e69a63a1cd8f3b8e10b6b5f1f544f29f70c
Contents?: true
Size: 524 Bytes
Versions: 20
Compression:
Stored size: 524 Bytes
Contents
# frozen_string_literal: true RSpec.describe Mutant::Parser do let(:object) { described_class.new } describe '#call' do let(:path) { instance_double(Pathname) } subject { object.call(path) } before do expect(path).to receive(:read) .with(no_args) .and_return(':source') end it 'returns parsed source' do expect(subject).to eql(s(:sym, :source)) end it 'is idempotent' do source = object.call(path) expect(subject).to be(source) end end end
Version data entries
20 entries across 20 versions & 1 rubygems