appium_capybara 1.4.0 → 1.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f17f80988b32b5c0ddcb09e101f77d362d0b88c1
4
- data.tar.gz: 599deb1815dd7ac7d2142ce17aa4a2ab5e96dda0
3
+ metadata.gz: 136a1be473deadc3b5aee8c92d0666ab15134ce4
4
+ data.tar.gz: 3279f7f7712b1377ea3fc7bf0fd9c05a04d289f5
5
5
  SHA512:
6
- metadata.gz: 3c908992b789d5c2de85fcb3546517a81d277a6009e5735dd8145cd523fb40afc374c2b7005972dca469dca6b5ca6c2e322553f7a6b8a5d57e7bf88c20951c20
7
- data.tar.gz: 18fb1f1e50837d0fc0403d251f6b2fec3336b327c8c42b2cf5d074448273b251c0099d34602ace3033ae4232a0cca374e896061837e52cbb639aaba6fb34997d
6
+ metadata.gz: fe3cf9ab8b4ed7d5bd0c92dcb3bcc7fa1a47d2aa8a365bdc9bde66e6169ff8eeeeb0d019c494a18b06b0bfa131200de3ee4c32f006a8eb9105c765aba6740f8c
7
+ data.tar.gz: fa566f18358339691fe62a2a4ec5c2b7576f7aedb3a0aedf5eed21e1be2a53fdd34fdf857636f28f2bdf67b227cdbc8cbcea7ba2868ff00f7aa5e76c2908829e
@@ -1,4 +1,5 @@
1
1
  require 'rspec'
2
+ require 'capybara'
2
3
  require 'capybara/rspec'
3
4
  require 'appium_capybara'
4
5
  require 'site_prism'
@@ -8,10 +9,10 @@ caps = Appium.load_appium_txt file: File.expand_path('./', 'appium.txt'), verbos
8
9
  url = "http://localhost:4723/wd/hub"
9
10
 
10
11
  Capybara.register_driver(:appium) do |app|
11
- all_options = caps.merge(appium_lib: {server_url: url})
12
- puts all_options.inspect
12
+ all_options = caps.merge({appium_lib: {server_url: url}, global_driver: false})
13
+ puts all_options.inspect
13
14
 
14
- Appium::Capybara::Driver.new app, all_options
15
+ Appium::Capybara::Driver.new app, all_options
15
16
  end
16
17
 
17
18
  Capybara.default_driver = :appium
@@ -7,4 +7,8 @@ RSpec.configure do |config|
7
7
  config.after(:each) do |result|
8
8
  Capybara.current_session.driver.quit
9
9
  end
10
+
11
+ config.after do |result|
12
+ Capybara.current_session.driver.save_screenshot 'error.png' if result.exception
13
+ end
10
14
  end
@@ -51,7 +51,7 @@ module Appium::Capybara
51
51
  @appium_driver.reset if @appium_driver
52
52
  end
53
53
 
54
- # new
54
+ # @deprecated This method is being removed
55
55
  def browser_initialized?
56
56
  !! @browser
57
57
  end
@@ -1,6 +1,6 @@
1
1
  module Appium
2
2
  module Capybara
3
- VERSION = '1.4.0' unless defined? ::Appium::Capybara::VERSION
4
- DATE = '2017-09-19' unless defined? ::Appium::Capybara::DATE
3
+ VERSION = '1.4.1' unless defined? ::Appium::Capybara::VERSION
4
+ DATE = '2017-10-29' unless defined? ::Appium::Capybara::DATE
5
5
  end
6
6
  end
data/release_notes.md CHANGED
@@ -1,3 +1,14 @@
1
+ #### v1.4.1 2017-10-29
2
+
3
+ - [b022ae9](https://github.com/appium/appium_capybara/commit/b022ae95801cd0764ee26e7883de5c1b8c0f7905) Release 1.4.1
4
+ - [aa02326](https://github.com/appium/appium_capybara/commit/aa023262998be02fca83d861f2a8dbfc0069d696) Merge pull request #34 from KazuCocoa/turn_global_driver_off
5
+ - [afc948e](https://github.com/appium/appium_capybara/commit/afc948e76e0a9dc6af9b328537a2eb28abf06411) turn global driver in initialise
6
+ - [c0f8471](https://github.com/appium/appium_capybara/commit/c0f847146cbcb19f8deae510f00faa053ca54809) Merge pull request #33 from KazuCocoa/revert_truthy
7
+ - [0c26cc6](https://github.com/appium/appium_capybara/commit/0c26cc6185b8db1f37cf135ad50deede140aa46d) revert except value
8
+ - [c224e6a](https://github.com/appium/appium_capybara/commit/c224e6aa842e3b94f6b205c637898612ec4cbe3c) Merge pull request #32 from KazuCocoa/add_capybara_screenshot_after_hook
9
+ - [3f23a8d](https://github.com/appium/appium_capybara/commit/3f23a8d405053d485245c7c4587e7d995580b20f) add an example for after hook
10
+
11
+
1
12
  #### v1.4.0 2017-09-19
2
13
 
3
14
  - [9af61c9](https://github.com/appium/appium_capybara/commit/9af61c934208f3cd08baa91ef46d3d0e95f2b3bb) Release 1.4.0
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appium_capybara
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - scott.bonebrake@gmail.com
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-09-19 00:00:00.000000000 Z
13
+ date: 2017-10-29 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: appium_lib