compatriot 0.1.7 → 0.1.8

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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ec522378c86bc442a0894f7f9e34c7cad077dc83
4
- data.tar.gz: 33d7e9d5640cb3090d66e57a0268815a59a1709d
3
+ metadata.gz: c679503194671c201eedbdd42419d1cd838ff9e1
4
+ data.tar.gz: d98c18230b4dcb22f1d9e7fc5a1e609ee9d3b356
5
5
  SHA512:
6
- metadata.gz: 4ac2c45a29c6cf68779f6f49aafef0e699e17d7aba7b533b4c656a0fba994307ee7a7db6312bc391de8a53efce9076fdb2b368251c40297d4dacff49bb6f2605
7
- data.tar.gz: 45ce24bb91b260212ef70b95c89297f708f7b393ece7b2ec42f9f9bc67a961e0c9d95de556d8b6c29c0bc34be71c931fe0ba07e48feac7d204af2e0a4944f46d
6
+ metadata.gz: 7a6de3a5cca25b8251c4ca1e2d5e2b045e81bdbb37dcd0119796988f3dfab4cce8e9b45f8752a2e438833982dd1304b3bc0864d14aae6d68cf5801cd90766305
7
+ data.tar.gz: c776231462be785e72b1275dadeb973bc577a39fb365fdb2f825625d7c2252647d72fd405d48d010c46aa003837f1771d22cf535e924d895079b22a709f71436
@@ -49,7 +49,7 @@ module Compatriot
49
49
  end
50
50
 
51
51
  def filepath_for_screenshot(type, filename)
52
- self.screenshot_directory + '/' + type + '/' + filename
52
+ File.expand_path(self.screenshot_directory + '/' + type + '/' + filename)
53
53
  end
54
54
  end
55
55
 
@@ -1,3 +1,3 @@
1
1
  module Compatriot
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.8"
3
3
  end
@@ -41,9 +41,9 @@ describe Compatriot::Reporter do
41
41
  compatriot_percentages_changed: [ 0.02 ],
42
42
  passed?: true)]
43
43
  formated_test = Compatriot::Reporter.new(tests).format(tests)[0]
44
- formated_test[:control_image_path].must_equal "./tmp/test/screenshots/control/mocha::mock_viewing_a_specific_report_did_stuff.png"
45
- formated_test[:variable_image_path].must_equal "./tmp/test/screenshots/variable/mocha::mock_viewing_a_specific_report_did_stuff.png"
46
- formated_test[:diff_image_path].must_equal "./tmp/test/screenshots/diffs/mocha::mock_viewing_a_specific_report_did_stuff.png"
44
+ formated_test[:control_image_path].must_equal File.expand_path("./tmp/test/screenshots/control/mocha::mock_viewing_a_specific_report_did_stuff.png")
45
+ formated_test[:variable_image_path].must_equal File.expand_path("./tmp/test/screenshots/variable/mocha::mock_viewing_a_specific_report_did_stuff.png")
46
+ formated_test[:diff_image_path].must_equal File.expand_path("./tmp/test/screenshots/diffs/mocha::mock_viewing_a_specific_report_did_stuff.png")
47
47
  end
48
48
  end
49
49
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: compatriot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carol (Nichols || Goulding)
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-05-19 00:00:00.000000000 Z
12
+ date: 2016-08-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: minitest