Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Kirkland committed Jan 9, 2025
1 parent 54450d6 commit 3d73022
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/api/appium/file_manager_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ def test_read_app_file_success
@mock_driver.expects(:app_id).returns('app1')
Maze::Helper.expects(:get_current_platform).returns('ios')
$logger.expects(:trace).with("Attempting to read file from '@app1/Documents/filename.json'")
@mock_driver.expects(:pull_file).with('@app1/Documents/filename.json')
@mock_driver.expects(:pull_file).with('@app1/Documents/filename.json').returns('contents')

assert_true(@manager.read_app_file('filename.json'))
assert_equal('contents', @manager.read_app_file('filename.json'))
end

def test_read_app_file_failure
Expand All @@ -70,7 +70,7 @@ def test_read_app_file_failure

$logger.expects(:error).with("Error reading file from device: error")

assert_false(@manager.read_app_file('filename.json'))
assert_nil(@manager.read_app_file('filename.json'))
end
end
end
Expand Down

0 comments on commit 3d73022

Please sign in to comment.