assert_matches_snapshot 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 07c63dd63678069e3f072b0efa3502ed7b733aac
4
- data.tar.gz: 369ed422cd2ebd54739d1244ec6a27dd9067ed59
3
+ metadata.gz: 25829ecdc85298fc3e13d6bdb3bcf88ffb240c9b
4
+ data.tar.gz: 157c20fe5ef9c02e31319f8d022887ce65e38466
5
5
  SHA512:
6
- metadata.gz: 716848dc0e655ca0b92806d109e45cd9e17f8b42fcc7eab6ba02beb1068a0f38d9c33a503338d9621b9baf4f7422e1762f570a4f11725947d9c4964692813bbe
7
- data.tar.gz: c0e53183b7afd0d54fdb940faf06574581a43c995aa25a29c8877320d3e81db5d82f2b6f38826523d60d5b69292ac33235a5d810fa2244c95a6efe9523523b75
6
+ metadata.gz: 8115edab9c0997a498f506a1306810f7a189b9fe2582d3e3dba69393239ed2b5772c6a60fab24cbbbb34dba684d0ac5da141e1a03a46f40fd9e597bde27f842d
7
+ data.tar.gz: 5fc81fd8d242a95cc18cd7399f77cf42d4a03a575d64194dcaa6baa2e5561c465c13acfba648b2ca65157b4ca90655a84e71628716542419ff0640614e3e8f70
data/README.md CHANGED
@@ -28,7 +28,7 @@ assert_matches_snapshot 'after page is loaded'
28
28
 
29
29
  `assert_matches_snapshot` takes one argument: a string that is used to distinguish snapshots from each other. This string should be unique across all tests for a controller-action combination.
30
30
 
31
- To overwrite the snapshots, pass the argument `--overwrite-snapshots` to your test command.
31
+ To overwrite the snapshots, set the environment variable `OVERWRITE_SNAPSHOTS=true` before running your test command.
32
32
 
33
33
  ## Development
34
34
 
@@ -32,7 +32,7 @@ module AssertMatchesSnapshot
32
32
 
33
33
  class OverwriteSnapshots
34
34
  def self.active?
35
- ARGV.include?('--overwrite-snapshots')
35
+ ENV['OVERWRITE_SNAPSHOTS'] == 'true'
36
36
  end
37
37
  end
38
38
  end
@@ -1,3 +1,3 @@
1
1
  module AssertMatchesSnapshot
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: assert_matches_snapshot
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Broadley