capybara-screenshot 1.0.8 → 1.0.9
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZmMwYzE2YmM3NGE1NGJjNjM5Y2ZiYjNhNGIwMjE3Y2VjM2JmNjVhMw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YWIzMjk0MjA5OGZmOTA3MjExYjI5MjhjMDhiZTAxZTUxZmQ5ZjRlNg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZWJkZGEyMTY5YmY5NTgzMDg2OGNlOWQ2Yjc3YmZlMjZhNTBkZDUzMmE0YjYw
|
10
|
+
MjMwODZlMTUxNjYwOWIxNTRlOWZiYTZjYTk4ZjllYTM2MjIzN2E5Y2ZhMTkw
|
11
|
+
NDc0ZDc0OGQ3MDc2ZTQ4NDlmOTNkOTc0MjFhNDQ3OWQ0ODc0ZTM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OGQxNzQ2Nzk4N2Q5ZGIzMjVkMGRjOGM3OTM0ODc1YzFlOTcwMDA5YjBlMDM5
|
14
|
+
NjE0MTljNGU1ZGUyMTdmMjEwMDViZmZiOGFhNmNkMDdjYWEzZjNkMzBkYmVl
|
15
|
+
OTJjMWMzMzBjMjkxZWQ0Yjk5YTg4MjRkMjNhOTYyNzIxNWQ0MGI=
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
6 April 2015 - 1.0.8 -> 1.0.9
|
2
|
+
-----------
|
3
|
+
|
4
|
+
* [Improved file links within screenshot output](https://github.com/mattheworiordan/capybara-screenshot/pull/123)
|
5
|
+
|
6
|
+
Thanks to [Jan Lelis](https://github.com/janlelis)
|
7
|
+
|
1
8
|
6 April 2015 - 1.0.7 -> 1.0.8
|
2
9
|
-----------
|
3
10
|
|
@@ -26,8 +26,8 @@ module Capybara
|
|
26
26
|
private
|
27
27
|
def output_screenshot_info(example)
|
28
28
|
return unless (screenshot = example.metadata[:screenshot])
|
29
|
-
output.puts(long_padding + CapybaraScreenshot::Helpers.yellow("HTML screenshot:
|
30
|
-
output.puts(long_padding + CapybaraScreenshot::Helpers.yellow("Image screenshot:
|
29
|
+
output.puts(long_padding + CapybaraScreenshot::Helpers.yellow("HTML screenshot: file://#{screenshot[:html]}")) if screenshot[:html]
|
30
|
+
output.puts(long_padding + CapybaraScreenshot::Helpers.yellow("Image screenshot: file://#{screenshot[:image]}")) if screenshot[:image]
|
31
31
|
end
|
32
32
|
|
33
33
|
def long_padding
|
@@ -68,7 +68,7 @@ describe Capybara::Screenshot::RSpec::TextReporter do
|
|
68
68
|
|
69
69
|
it 'appends the html file path to the original output' do
|
70
70
|
@reporter.send(example_failed_method, example)
|
71
|
-
expect(@reporter.output.string).to eql("original failure info\n #{CapybaraScreenshot::Helpers.yellow("HTML screenshot: path/to/html")}\n")
|
71
|
+
expect(@reporter.output.string).to eql("original failure info\n #{CapybaraScreenshot::Helpers.yellow("HTML screenshot: file://path/to/html")}\n")
|
72
72
|
end
|
73
73
|
end
|
74
74
|
|
@@ -77,7 +77,7 @@ describe Capybara::Screenshot::RSpec::TextReporter do
|
|
77
77
|
|
78
78
|
it 'appends the image path to the original output' do
|
79
79
|
@reporter.send(example_failed_method, example)
|
80
|
-
expect(@reporter.output.string).to eql("original failure info\n #{CapybaraScreenshot::Helpers.yellow("HTML screenshot: path/to/html")}\n #{CapybaraScreenshot::Helpers.yellow("Image screenshot: path/to/image")}\n")
|
80
|
+
expect(@reporter.output.string).to eql("original failure info\n #{CapybaraScreenshot::Helpers.yellow("HTML screenshot: file://path/to/html")}\n #{CapybaraScreenshot::Helpers.yellow("Image screenshot: file://path/to/image")}\n")
|
81
81
|
end
|
82
82
|
end
|
83
83
|
|
@@ -93,6 +93,6 @@ describe Capybara::Screenshot::RSpec::TextReporter do
|
|
93
93
|
old_reporter.singleton_class.send :include, described_class
|
94
94
|
example = example_failed_method_argument_double(screenshot: { html: "path/to/html" })
|
95
95
|
old_reporter.send(example_failed_method, example)
|
96
|
-
expect(old_reporter.output.string).to eql("original failure info\n #{CapybaraScreenshot::Helpers.yellow("HTML screenshot: path/to/html")}\n")
|
96
|
+
expect(old_reporter.output.string).to eql("original failure info\n #{CapybaraScreenshot::Helpers.yellow("HTML screenshot: file://path/to/html")}\n")
|
97
97
|
end
|
98
98
|
end
|