free_mutant/spec/unit/mutant/rspec/builder_spec.rb
Markus Schirp 3ebf5b7992 Prepare to split mutant-rspec from gem.
* Moves all rspec integration into Mutant::Rspec namespace.
* Removes the unused --rspec-level option
* Mutant::Rspec::Strategy is smelly, has no state. Will make sense with
  future commits.
2014-01-17 22:59:22 +01:00

21 lines
435 B
Ruby

# encoding: utf-8
require 'spec_helper'
describe Mutant::Rspec::Builder do
let(:option_parser) { OptionParser.new }
let(:cache) { Mutant::Cache.new }
let(:object) { described_class.new(cache, option_parser) }
let(:default_strategy) do
Mutant::Rspec::Strategy.new
end
specify do
object
option_parser.parse!(%w[--rspec])
expect(object.output).to eql(default_strategy)
end
end