Skip to content

Commit c701975

Browse files
committed
remove unnecessary deps
1 parent 65d74c8 commit c701975

3 files changed

Lines changed: 7 additions & 16 deletions

File tree

Gemfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ source 'https://rubygems.org'
1616
gemspec
1717

1818
gem 'appium_thor', '~> 2.0'
19-
gem 'fakefs', '~> 3.0.0'
2019
gem 'hashdiff', '~> 1.2.0'
2120
gem 'minitest', '~> 5.0'
2221
gem 'minitest-reporters', '~> 1.1'

android_tests/lib/android/specs/driver.rb

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
require 'tmpdir'
16+
1517
# rake "android[driver]"
1618
class AndroidTest
1719
class Driver < Minitest::Test
@@ -105,20 +107,11 @@ def test_07_absolute_app_path
105107
validate_path 'sauce-storage:some_storage_suffix'
106108
validate_path 'http://www.saucelabs.com'
107109

108-
# fake real paths for osx/windows.
109-
FakeFS.activate!
110-
111-
osx_existing_path = '/Users/user/myapp.app'
112-
FileUtils.mkdir_p osx_existing_path
113-
validate_path osx_existing_path
114-
115-
# TODO: FakeFS fails on Windows paths due to the drive letters.
116-
# Look into how opscode/chef tests this.
117-
# windows_existing_path = "C:\\Program Files\\myapp.apk"
118-
# FileUtils.mkdir_p windows_existing_path
119-
# validate_path windows_existing_path
120-
121-
FakeFS.deactivate!
110+
Dir.mktmpdir do |tmp_dir|
111+
existing_path = File.join(tmp_dir, 'myapp.app')
112+
FileUtils.mkdir_p existing_path
113+
validate_path existing_path
114+
end
122115

123116
# bundle id test
124117
validate_path 'my.bundle.id'

android_tests/lib/run.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
require 'minitest/autorun'
1717
require 'minitest/reporters'
1818
require 'minitest'
19-
require 'fakefs/safe'
2019
require 'hashdiff'
2120
require_relative '../../lib/appium_lib'
2221

0 commit comments

Comments
 (0)