fix local detection for file uploads tests
Change-Id: I3357e39ee3a05f5a370f1f40805adac9358e191f Reviewed-on: https://gerrit.instructure.com/3530 Reviewed-by: Jon Jensen <jon@instructure.com> Tested-by: Hudson <hudson@instructure.com>
This commit is contained in:
parent
4ae436f253
commit
6b403d6aa9
|
@ -8,7 +8,7 @@ TEST_FILE_UUIDS = { "testfile1.txt" => "63f46f1c-dd4a-467d-a136-333f262f1366",
|
|||
|
||||
def get_file(filename)
|
||||
data = TEST_FILE_UUIDS[filename]
|
||||
if SELENIUM_CONFIG.empty?
|
||||
if !SELENIUM_CONFIG[:host_and_port]
|
||||
@file = Tempfile.new(filename.split(/(?=\.)/))
|
||||
@file.write data
|
||||
@file.close
|
||||
|
|
Loading…
Reference in New Issue