Skip to content
Permalink
Browse files

Rubocop fixes

  • Loading branch information
iay committed May 23, 2018
1 parent f9fb1ac commit 6d0311f82e277ef3a589e04fca0f5346a13d3f15
Showing with 8 additions and 8 deletions.
  1. +5 −5 Rakefile
  2. +1 −1 lib/{get_api.rb → new_api.rb}
  3. +2 −2 test/test_get_validators.rb
@@ -2,16 +2,16 @@ task :cop do
system 'bundle exec rubocop'
end

def runTest(s)
puts "Running test #{s}."
system "bundle exec ruby -I lib test/test_#{s}.rb"
def run_test(test_name)
puts "Running test #{test_name}."
system "bundle exec ruby -I lib test/test_#{test_name}.rb"
puts 'Done.'
end

task :test_get_validators do
runTest 'get_validators'
run_test 'get_validators'
end

task :default => %[test_get_validators] do
task default: %(test_get_validators) do
puts 'All tests done.'
end
@@ -4,6 +4,6 @@
config.host = 'localhost:8080'
end

def getApi()
def new_api
ValidatorClient::ValidationApi.new
end
@@ -1,8 +1,8 @@
require 'get_api'
require 'new_api'

begin
# lists available validators
result = getApi().get_validators
result = new_api.get_validators
puts "Validators detected: #{result.length}"
result.each do |val|
puts " #{val.validator_id}: #{val.description}"

0 comments on commit 6d0311f

Please sign in to comment.
You can’t perform that action at this time.