Sha256: 7110a1367e0291be11ae3c8112ca1169f181a0b41a2508d4e1e931fd3d8f684c
Contents?: true
Size: 493 Bytes
Versions: 8
Compression:
Stored size: 493 Bytes
Contents
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
8 entries across 8 versions & 1 rubygems