Sha256: 2e7b960181b9c61f2fcf5c9f9c1cb984728cd72b455ce3b1c5add69de33ccc0c
Contents?: true
Size: 675 Bytes
Versions: 3
Compression:
Stored size: 675 Bytes
Contents
require 'spec_helper' describe AnalDiffist::TargetFinder do describe "#targets" do before { Dir.stub(:exists?){false} } subject { AnalDiffist::TargetFinder.new.targets } context 'when ./lib exists' do before { Dir.stub(:exists?).with('lib'){true} } it{should include("lib")} end context 'when ./app exists' do before { Dir.stub(:exists?).with('app'){true} } it{should include("app")} end end describe "#to_s" do subject do atf = AnalDiffist::TargetFinder.new.tap do |t| t.stub(:targets){['analyst', 'therapist']} end atf.to_s end it{ should == "analyst therapist"} end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
analdiffist-0.4.0 | spec/lib/analdiffist/target_finder_spec.rb |
analdiffist-0.3.0 | spec/lib/analdiffist/target_finder_spec.rb |
analdiffist-0.2.0 | spec/lib/analdiffist/target_finder_spec.rb |