File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ source 'https://rubygems.org'
1616gemspec
1717
1818gem 'appium_thor' , '~> 2.0'
19- gem 'fakefs' , '~> 3.0.0'
2019gem 'hashdiff' , '~> 1.2.0'
2120gem 'minitest' , '~> 5.0'
2221gem 'minitest-reporters' , '~> 1.1'
Original file line number Diff line number Diff line change 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]"
1618class 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'
Original file line number Diff line number Diff line change 1616require 'minitest/autorun'
1717require 'minitest/reporters'
1818require 'minitest'
19- require 'fakefs/safe'
2019require 'hashdiff'
2120require_relative '../../lib/appium_lib'
2221
You can’t perform that action at this time.
0 commit comments