spec/lib/maid/platform_spec.rb in maid-0.2.2 vs spec/lib/maid/platform_spec.rb in maid-0.2.3.alpha.1

- old
+ new

@@ -23,10 +23,14 @@ end it 'is not identified as OS X' do subject.osx?.should be_false end + + it 'locate is "locate"' do + Platform::Commands.locate.should match(/locate/) + end end context 'when running on Mac OS X' do before do stub_host_os('darwin10.0') @@ -36,9 +40,13 @@ subject.linux?.should be_false end it 'is identified as OS X' do subject.osx?.should be_true + end + + it 'locate is "mdfind"' do + Platform::Commands.locate.should match(/mdfind/) end end end end