spec/test_app.rb in sickle-0.1.1 vs spec/test_app.rb in sickle-0.2.0
- old
+ new
@@ -6,10 +6,11 @@
desc "Run task Sub1"
def sub1
p ["sub1"]
end
+ desc "Will make conflict!"
def conflict
p ["sub1:conflict"]
end
end
@@ -19,10 +20,11 @@
desc "Run task other sub1"
def other1(blah)
p ["other1", blah]
end
+ desc "Will make conflict!"
def conflict
p ["other1:conflict"]
end
end
@@ -32,10 +34,11 @@
desc "No sub for me"
def nosub
p ["nosub"]
end
+ desc "Will make conflict!"
def conflict
p ["nosub:conflict"]
end
end
@@ -57,16 +60,21 @@
option :number, :default => 10
def task2
p ["task2", options[:number], options[:fast], options[:slow], options[:verbose], options[:debug]]
end
+ desc "Will make conflict!"
def conflict
p ["app:conflict"]
end
option :null, :default => nil
+ desc "Test"
def test_option
p ["test_option", options[:null]]
+ end
+
+ def private_task
end
include_modules :sub => Sub,
:other => Other