Skip to content

Commit

Permalink
Refactoring; delete dead test code
Browse files Browse the repository at this point in the history
  • Loading branch information
JonJagger committed Jan 14, 2020
1 parent aef1f13 commit c8ddad4
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions test_client/test/test_base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ class TestBase < HexMiniTest

def initialize(arg)
super(arg)
@files = nil
@image_name = nil
end

# - - - - - - - - - - - - - - - - - - - - - - - - - -
Expand Down Expand Up @@ -39,7 +37,7 @@ def http_adapter

def run_cyber_dojo_sh(named_args = {})

unchanged_files = @files || starting_files
unchanged_files = starting_files

changed_files = defaulted_arg(named_args, :changed_files, {})
changed_files.keys.each do |filename|
Expand All @@ -54,12 +52,10 @@ def run_cyber_dojo_sh(named_args = {})
refute unchanged_files.keys.include?(filename), diagnostic
end

@files = [ *created_files, *unchanged_files, *changed_files ].to_h

args = []
args << defaulted_arg(named_args, :image_name, image_name)
args << defaulted_arg(named_args, :id, id)
args << @files
args << [ *created_files, *unchanged_files, *changed_files ].to_h
args << defaulted_arg(named_args, :max_seconds, 10)

@result = runner.run_cyber_dojo_sh(*args)
Expand Down Expand Up @@ -117,7 +113,7 @@ def assert_cyber_dojo_sh(sh_script)
# - - - - - - - - - - - - - - - - - - - - - - - - - -

def image_name
@image_name || manifest['image_name']
manifest['image_name']
end

# - - - - - - - - - - - - - - - - - - - - - - - - - -
Expand Down

0 comments on commit c8ddad4

Please sign in to comment.