Skip to content

Commit

Permalink
fixit
Browse files Browse the repository at this point in the history
  • Loading branch information
tcob committed Apr 15, 2018
1 parent ee6678c commit 955f4cc
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 49 deletions.
2 changes: 1 addition & 1 deletion lib/utils/reporter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def welcome
end

def configs
puts "Place configs in orgbot.env in the format:"\
puts 'Place configs in orgbot.env in the format:'\
'OCTOKIT_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'\
'REPO=someuseraccount/coolrepo'
end
Expand Down
66 changes: 33 additions & 33 deletions test/test_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,41 +2,41 @@
require_relative '../lib/config'

class TestConfig < Test::Unit::TestCase
def test_repo
conf = Config.new
assert_nothing_raised do
conf.validate_repo
end
def test_repo
conf = Config.new
assert_nothing_raised do
conf.validate_repo
end
end

def test_token
conf = Config.new
assert_nothing_raised do
conf.validate_token
end
def test_token
conf = Config.new
assert_nothing_raised do
conf.validate_token
end
end

# requires user input, look into IO pipe here
# to simulate gets
#
# def test_mode_select
# conf = Config.new
# assert_nothing_raised do
# conf.mode_select
# end
# end
#
# def test_mode_select
# conf = Config.new
# assert_nothing_raised do
# conf.mode_config
# end
# end
#
# def test_mode_select
# conf = Config.new
# assert_nothing_raised do
# conf.checklist
# end
# end
# requires user input, look into IO pipe here
# to simulate gets
#
# def test_mode_select
# conf = Config.new
# assert_nothing_raised do
# conf.mode_select
# end
# end
#
# def test_mode_select
# conf = Config.new
# assert_nothing_raised do
# conf.mode_config
# end
# end
#
# def test_mode_select
# conf = Config.new
# assert_nothing_raised do
# conf.checklist
# end
# end
end
10 changes: 5 additions & 5 deletions test/test_reporter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
require_relative '../lib/utils/reporter'

class TestReporter < Test::Unit::TestCase
def test_welcome
rep = Reporter.new
assert_nothing_raised do
rep.welcome
end
def test_welcome
rep = Reporter.new
assert_nothing_raised do
rep.welcome
end
end
end
20 changes: 10 additions & 10 deletions test/test_utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
require_relative '../lib/utils/utils'

class TestUtils < Test::Unit::TestCase
def test_ratelimit
util = Util.new
assert_nothing_raised do
util.ratelimit
end
def test_ratelimit
util = Util.new
assert_nothing_raised do
util.ratelimit
end
end

def test_time_conversion
util = Util.new
expected = "50m 2s"
assert_equal(expected, util.seconds_to_str(3002))
end
def test_time_conversion
util = Util.new
expected = '50m 2s'
assert_equal(expected, util.seconds_to_str(3002))
end
end

0 comments on commit 955f4cc

Please sign in to comment.