acceptance_test 1.7.6 → 1.7.7

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
- MmM4NDI2NzJjYTE5ZTFmZjc0OTY2ODM2MmFjYjgwNDU2MzIwNWZkYw==
4
+ ZDdmNjQ4M2RlMGYzZDVhM2JlN2RmZjU4MWY4YTA1OTA0NjFiM2U5MA==
5
5
  data.tar.gz: !binary |-
6
- NDliNjgxZmY0YTFhMGVjMDA4MzY2OTlkNGI3ODAxNDEwMGNiOGQ3ZA==
6
+ ODA0ZGIzZDc3ZTBlOGFiOTM0ODQ1ZGYzMmIxY2U4MGNjNTc3NTE3ZA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZWYyMjFkNzAwYTFkYzgxMDU1NjQ2MzEzMmJmNTI2NTc1NGRkNjUxNmQ3YmIy
10
- MDBkODAyMjFkZDViZjBmYzA3OGQzNmU5Njc3OWY4M2M5YzI2MGYyYmMxYzhj
11
- NzM2ZmI3Y2UyMjkxMmNkMmZkNzU2OTI5MjE2MzAxOTc2ODc4ZjE=
9
+ ZGQzNjcxYjViMWQ0MDIzNTNlZTFjMzQ0ODkwOTIzZWY3NWUwZjRjOTFhOTlh
10
+ ZmFjNDA4NDRiYmVkNzA5ZDgzMTAzNTJjYjE3ZWRiYzFiM2ExOTE4MmY3NjY4
11
+ ZTU3MzhiYzk4NjFiYjRhZWQ4ZjE4N2NmYzMxNmEyOGYxNDE0Nzk=
12
12
  data.tar.gz: !binary |-
13
- ZjBkODg4Mjk1MTM1NzE5ZWMxNjRlNTQzNzBlZDYxNGVkMDI1NzdjMWZhYjhl
14
- NjMxZmQwMmUwYjkxYjI3NDlhZmExZmE2MjU4ODU1YWIzZDEzN2I0OWQ4NTg2
15
- Y2RhMWU0MGM1N2Y5MGQ3MmYxZjFiM2FiNTU1YTQ2YjE2MWY5YWI=
13
+ MzhjZDA4MzhjYjNhNzQ1N2NjNGIxM2EzMTc3NDRjMWI3OGZlY2VhYzU4OWJi
14
+ N2U1MTY4M2RjZjQ5NDVjNjliMTZjNzQ2MDIxODQxYTFlNzg4OWQ0MGRjNTBi
15
+ ODIzYjIwM2M2YjQ5YTRkM2IxZDFiYmVjNzQ3ZDdkYzc2NDViNWM=
data/CHANGES CHANGED
@@ -167,4 +167,8 @@
167
167
 
168
168
  == Version 1.7.6
169
169
 
170
- * Bug fix
170
+ * Bug fix
171
+
172
+ == Version 1.7.7
173
+
174
+ * Exposing screen maker
@@ -10,7 +10,7 @@ require 'acceptance_test/turnip_ext'
10
10
  class AcceptanceTest
11
11
  include Singleton
12
12
 
13
- attr_reader :config, :driver_manager
13
+ attr_reader :config, :screenshot_maker, :driver_manager
14
14
 
15
15
  def initialize
16
16
  Capybara.default_driver = :selenium
@@ -21,6 +21,8 @@ class AcceptanceTest
21
21
  @config[:screenshot_dir] = File.expand_path('tmp')
22
22
  @config[:timeout_in_seconds] = 20
23
23
 
24
+ @screenshot_maker = ScreenshotMaker.new config[:screenshot_dir]
25
+
24
26
  @driver_manager = DriverManager.new
25
27
  end
26
28
 
@@ -55,7 +57,7 @@ class AcceptanceTest
55
57
 
56
58
  FileUtils.mkdir_p screenshot_dir
57
59
 
58
- screenshot_maker = ScreenshotMaker.new screenshot_dir
60
+ screenshot_maker.screenshot_dir = screenshot_dir
59
61
 
60
62
  screenshot_maker.make page, metadata
61
63
 
@@ -1,5 +1,5 @@
1
1
  class ScreenshotMaker
2
- attr_reader :basedir
2
+ attr_accessor :basedir
3
3
 
4
4
  def initialize basedir
5
5
  @basedir = basedir
@@ -1,3 +1,3 @@
1
1
  class AcceptanceTest
2
- VERSION = "1.7.6"
2
+ VERSION = "1.7.7"
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.7.6
4
+ version: 1.7.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Shvets