Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

a bunch of tests added, some are pending because they are not impleme…

…nted yet
  • Loading branch information...
commit 1d8afaeac65444e5f397af4523ecde771236e2bf 1 parent f69f1a0
@andrefs andrefs authored
Showing with 19 additions and 6 deletions.
  1. +2 −1  lib/polvo/menu.rb
  2. +17 −5 spec/polvo/menu_spec.rb
View
3  lib/polvo/menu.rb
@@ -119,6 +119,7 @@ def get_script_info(rootdir,file)
return nil unless File.exist?(full_path)
return nil if File.directory?(full_path)
filestr = IO.read("#{rootdir}/#{file}")
+
if filestr =~ /^#\stitle:\s*([^\n]*)\s*$/
title = $1 || ''
end
@@ -132,7 +133,7 @@ def get_script_info(rootdir,file)
hidden = $1.to_i || 0
return nil if hidden == 1
end
- # description
+ # missing: description
return {
:title => title,
:os => os,
View
22 spec/polvo/menu_spec.rb
@@ -147,11 +147,23 @@
end
# Next tests:
-#
-# it "should show only Ubuntu/all scripts if OS is Ubuntu"
-# it "should show only MacOS/all scripts if OS is MacOS"
-#
-# it "should warn when directory is empty"
+
+ it "should show only Ubuntu/all scripts if OS is Ubuntu" do
+ pending "This is not yet implemented!"
+ end
+
+ it "should show only MacOS/all scripts if OS is MacOS" do
+ pending "This is not yet implemented!"
+ end
+
+ it "should warn when directory is empty" do
+ pending "This is not yet implemented!"
+ end
+
+ it "should bla bla bla descriptions" do
+ pending "This is not yet implemented!"
+ end
+
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.