spec/grepg/parser_spec.rb in grepg-0.0.6 vs spec/grepg/parser_spec.rb in grepg-0.0.7
- old
+ new
@@ -43,9 +43,15 @@
expect do
output = GrepPage::Parser.new('-t css'.split(' '))
expect(output).to match(/Missing --user parameter.*--user.*"/)
end.to raise_error(SystemExit)
end
+
+ it "shows all topics when no topic filter is specified" do
+ parser = GrepPage::Parser.new('-u kdavis'.split(' '))
+ output = capture_stdout { parser.run! }
+ expect(output).to match(/UNIX/)
+ end
end
end
describe '#default_file_name' do
it('returns nil if ~/.grepg.yml doesnt exist') do