spec/textpow_spec.rb in textpow1x-1.2.3 vs spec/textpow_spec.rb in textpow1x-1.2.4

- old
+ new

@@ -41,9 +41,13 @@ it "returns nil for unfound syntax" do Textpow.syntax('buby').should == nil end + it "does not find directories" do + Textpow.syntax('lib').should == nil + end + it "caches nil for unfound syntax" do Dir.should_receive(:glob).and_return [] Textpow.syntax('buby').should == nil Dir.should_not_receive(:glob) Textpow.syntax('buby').should == nil