acceptance_test 1.0.7 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NTZlMGI2NzhhMGU5NDRkNzhkYzQwNTIxNTVhMTkxMjFkZjY4NzA1MA==
4
+ NGQ4NjczZWRkY2JkOTdmNTc5MjUyNTk2NjkxYzA3ZDZiMmQ1MjYwZQ==
5
5
  data.tar.gz: !binary |-
6
- ZGI4YTlmNDYxYmRiODY5ZGMwYmYwZjAyZjZjZmZmNDljZWRlNDYwMg==
6
+ YzBiMDNlNTE2NTkyMzk3YzI3YzNhZTEwMDY5ZDYxNjJjMDg2YTEzOA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YzlhMjhhZDk5OWRlNjc2ODg5OTg3ZTVkNzhjZTAyY2NjNTc0MDIyMWU1MjMw
10
- NjZiOTRhOTFiZDIxYmY2MGExYjVlNjczNGQzMjgwMjJkMmIxZmExMzYxNDQw
11
- MmYxZTE1NTIxMzk2ZjQxNWJhM2M4NWYxZmY5OWJhOGQ5NGFmZDY=
9
+ YzBmNzI1ZDA2MTJkMDI0MzZhOGFjYjMxMjUxMmFhNTI1ZmE3NWU3NDFiZTY5
10
+ N2ZlMGE2NzY2MTZjZGU0MjVhYWVmMWU5ZGY2ZjZhMTY3ZmIxZDU1MDFhYzFj
11
+ YmRiYmFiZDJkNmEyNGEzOGMyNjczM2VhODBiMzQ2MWU3ZDk5MGU=
12
12
  data.tar.gz: !binary |-
13
- NTQ1YThlZmE5MjA1OTAxYjFmMWQ2YmIwMTQ2OGJhMjQzM2ZjMjQyZTFhNjZl
14
- ZWU0NTg4ZWFlZmRmYTExZGEyZGEzYjk4MjMzNzZlYTcwYTQ3YmQ5YjUxNTZk
15
- YTlkODY2MmJiOGRiYTg4NGZmZjRiZTJlZjM0N2RhZDM2NTk4YjA=
13
+ M2Y1YmYyYjVlM2RhZTNlZGViY2QzOThkODBkN2NmYmIxOTI5OGVlMTg5NmE0
14
+ YWUwMzk2MGI5YTYyNWE5ZjYxMjBjZWZjN2VjMzAwODAxYjU5MWVlYWIzNmIw
15
+ MWEzNzliNzZkOTA1MmQ4Njg3MjI1M2I5MTYyOWI2NDRiZDhlYmU=
data/.idea/.rakeTasks CHANGED
@@ -4,4 +4,4 @@ You are allowed to:
4
4
  1. Remove rake task
5
5
  2. Add existing rake tasks
6
6
  To add existing rake tasks automatically delete this file and reload the project.
7
- --><RakeGroup description="" fullCmd="" taksId="rake"><RakeTask description="Run RSpec code examples" fullCmd="spec" taksId="spec" /><RakeTask description="" fullCmd="build" taksId="build" /><RakeTask description="" fullCmd="fix_debug" taksId="fix_debug" /><RakeTask description="" fullCmd="gen" taksId="gen" /><RakeTask description="" fullCmd="install" taksId="install" /><RakeTask description="" fullCmd="release" taksId="release" /><RakeTask description="" fullCmd="uninstall" taksId="uninstall" /></RakeGroup></Settings>
7
+ --><RakeGroup description="" fullCmd="" taksId="rake"><RakeTask description="Run RSpec code examples" fullCmd="spec" taksId="spec" /><RakeTask description="" fullCmd="build" taksId="build" /><RakeTask description="" fullCmd="gen" taksId="gen" /><RakeTask description="" fullCmd="install" taksId="install" /><RakeTask description="" fullCmd="release" taksId="release" /><RakeTask description="" fullCmd="uninstall" taksId="uninstall" /></RakeGroup></Settings>
data/CHANGES CHANGED
@@ -30,4 +30,8 @@
30
30
 
31
31
  == Version 1.0.7
32
32
 
33
- * Bug fix
33
+ * Bug fix
34
+
35
+ == Version 1.1.0
36
+
37
+ * Switch to rspec3
@@ -37,17 +37,19 @@ class AcceptanceTest
37
37
  end
38
38
 
39
39
  def after context
40
- context.reset_session!
40
+ example = RSpec.current_example
41
41
 
42
- if context.example.exception
42
+ if example.exception
43
43
  driver = driver(context)
44
44
 
45
45
  if driver and not [:webkit].include? driver
46
- save_screenshot context.example, context.page
46
+ save_screenshot example, context.page
47
47
  end
48
48
  end
49
49
 
50
50
  Capybara.current_driver = Capybara.default_driver
51
+
52
+ context.reset_session!
51
53
  end
52
54
 
53
55
  def load_selenium_config file_name, config_name
@@ -1,3 +1,3 @@
1
1
  class AcceptanceTest
2
- VERSION = "1.0.7"
2
+ VERSION = "1.1.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acceptance_test
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Shvets