forked from bsmth/orgbots
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
tcob
committed
Apr 17, 2018
1 parent
0e82775
commit 47374a6
Showing
7 changed files
with
62 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
require 'test/unit' | ||
require_relative '../lib/config' | ||
require_relative '../lib/tasks/tasks' | ||
|
||
class TestRandCommit < Test::Unit::TestCase | ||
def test_pick_file | ||
rc = RandCommit.new(ENV['REPO'], ENV['TOKEN']) | ||
assert_nothing_raised do | ||
rc.pick_file('master') | ||
end | ||
end | ||
|
||
# only add when cleanup step easily available | ||
# def test_random_commit | ||
# rc = RandCommit.new(ENV['REPO'], ENV['TOKEN']) | ||
# assert_nothing_raised do | ||
# rc.commit | ||
# end | ||
# end | ||
|
||
def test_gen_word_maybe | ||
rc = RandCommit.new(ENV['REPO'], ENV['TOKEN']) | ||
assert_nothing_raised do | ||
rc.genword | ||
rc.maybe | ||
end | ||
end | ||
|
||
def test_txt_code_ext | ||
rc = RandCommit.new(ENV['REPO'], ENV['TOKEN']) | ||
assert_nothing_raised do | ||
rc.txt_ext | ||
rc.code_ext | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
require 'test/unit' | ||
require_relative '../lib/config' | ||
require_relative '../lib/tasks/tasks' | ||
|
||
class TestTasks < Test::Unit::TestCase | ||
def test_basic_task | ||
tm = TaskManager.new | ||
assert_nothing_raised do | ||
tm.shuffle_rand_file | ||
end | ||
end | ||
end |