19 lines
517 B
Ruby
19 lines
517 B
Ruby
require 'spec_helper'
|
|
|
|
describe Mutant::Runner::Rspec,'#output_stream' do
|
|
subject { object.output_stream }
|
|
|
|
let(:object) { described_class.run(mutation_subject,mutant) }
|
|
let(:mutation_subject) { mock('Subject', :insert => nil,:reset => nil) }
|
|
let(:mutant) { mock('Mutant') }
|
|
|
|
before do
|
|
RSpec::Core::Runner.stub(:run => 1)
|
|
end
|
|
|
|
it_should_behave_like 'an idempotent method'
|
|
|
|
it { should be_kind_of(StringIO) }
|
|
|
|
its(:read) { should eql('') }
|
|
end
|