test/unit/search_test.rb in gitdocs-0.5.0.pre7 vs test/unit/search_test.rb in gitdocs-0.5.0
- old
+ new
@@ -16,9 +16,14 @@
before do
repository1.stubs(:root).returns('root')
repository2.stubs(:root).returns('root')
end
+ describe 'term is missing' do
+ let(:term) { nil }
+ it { subject.must_equal({}) }
+ end
+
describe 'term is empty' do
let(:term) { '' }
it { subject.must_equal({}) }
end