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
- NGMwNWQxZDVjYmNlZTlkZjg0YWM2NTg1MTJhZTE3NWVkY2I3ZmMwYg==
4
+ ZmMwYzE2YmM3NGE1NGJjNjM5Y2ZiYjNhNGIwMjE3Y2VjM2JmNjVhMw==
5
5
  data.tar.gz: !binary |-
6
- MGExNjVmNDZkMzI1ODYzOWQzZDEzZTUyOWZiNGZkOTc0YjMwYjc4NA==
6
+ YWIzMjk0MjA5OGZmOTA3MjExYjI5MjhjMDhiZTAxZTUxZmQ5ZjRlNg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MjQ0N2NiNDE0MzQ1MmZlNjlmMWI1YjAxMTI2ZjFlNDFmMGE5ZTU1Yzk3Zjk1
10
- ZDcwYWUyYjQ4MWQyNDUyNGI4YWFhMDg4NWM4NmVkNDg4NGI5YTJiNzQ4Zjlk
11
- ZjgxZWNhODMxMTVkYzhmNDEyZTVjMzU2Njk0ZjZhZmNhNmMzMTc=
9
+ ZWJkZGEyMTY5YmY5NTgzMDg2OGNlOWQ2Yjc3YmZlMjZhNTBkZDUzMmE0YjYw
10
+ MjMwODZlMTUxNjYwOWIxNTRlOWZiYTZjYTk4ZjllYTM2MjIzN2E5Y2ZhMTkw
11
+ NDc0ZDc0OGQ3MDc2ZTQ4NDlmOTNkOTc0MjFhNDQ3OWQ0ODc0ZTM=
12
12
  data.tar.gz: !binary |-
13
- ZjU4ZjVkYTUzZjljYWE5NDI5YTUwNzRiNWE3ODcyZmRjZmFiMzY2MjlkNjU2
14
- OTkzNTUxN2Q1YTIzZjM3NjE4NjQ0YzU1YzBmZGI2MjI1YjMwNGI5NTZkMjBj
15
- NmIyOWJmNTU4M2JkMmZmNWY1YWMzZTg4Mzg1YzViNmY2ZmFiODk=
13
+ OGQxNzQ2Nzk4N2Q5ZGIzMjVkMGRjOGM3OTM0ODc1YzFlOTcwMDA5YjBlMDM5
14
+ NjE0MTljNGU1ZGUyMTdmMjEwMDViZmZiOGFhNmNkMDdjYWEzZjNkMzBkYmVl
15
+ OTJjMWMzMzBjMjkxZWQ0Yjk5YTg4MjRkMjNhOTYyNzIxNWQ0MGI=
@@ -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: #{screenshot[:html]}")) if screenshot[:html]
30
- output.puts(long_padding + CapybaraScreenshot::Helpers.yellow("Image screenshot: #{screenshot[:image]}")) if screenshot[:image]
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
@@ -1,5 +1,5 @@
1
1
  module Capybara
2
2
  module Screenshot
3
- VERSION = '1.0.8'
3
+ VERSION = '1.0.9'
4
4
  end
5
5
  end
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capybara-screenshot
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.8
4
+ version: 1.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew O'Riordan