waterpig 0.11.0 → 0.12.0

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: ba8d8900a70fa1544862a1ce21940ce8044d70ca
4
- data.tar.gz: dd60efb8ed224c6660f9d47f22ea8604c233a249
3
+ metadata.gz: a1c56c0b8dd66f52c90092d07fb557e6a7a9b6cb
4
+ data.tar.gz: 2f1454fcd4f78c4f34fcaf2f319cbf299d0e2a87
5
5
  SHA512:
6
- metadata.gz: 723f526d0ce65eda464ad98170ffffa130e2da86c6b35402bcdbaa2faf7ae6eb73cb9ccc3b1b4e7a35869b335387ec08b731d75b4d0677ef89ec2128d1d4f2bb
7
- data.tar.gz: a6285eafa476c33be6a0b2316357659159732913334a7fa3ee26fca592c796e801266c14b11bd3ab1ed44c3eb8f1a691ae8acd5fef6709bc7f4eefef404cda4d
6
+ metadata.gz: 8c4afc8bc3c16b3595469e2664c9648f573ef0583ff8b113444fcb08392acd9860aea401ae6b122057a3952c7d6c45631a48c5bddc234f8c6f2dd7c66af094c1
7
+ data.tar.gz: c2578350739cd14d2d6194cfbd7f742bb477a8600c9dad4b2ebf191131e84bcb62f95e133f85677053fcaae26605eb7a3cd7c1981ea86ee871f122993ea484d5
@@ -55,6 +55,7 @@ RSpec.configure do |config|
55
55
  config.add_setting :waterpig_browser_size_types, :default => [:feature]
56
56
 
57
57
  config.add_setting :waterpig_autosnap, :default => ENV['WATERPIG_AUTOSNAP']
58
+ config.add_setting :waterpig_snapshot_dir, :default => [ 'tmp' ]
58
59
  config.add_setting :waterpig_driver, :default => ENV['CAPYBARA_DRIVER']
59
60
  config.add_setting :waterpig_js_driver, :default => ENV['CAPYBARA_JS_DRIVER']
60
61
  config.add_setting :waterpig_clearable_logs, :default => [ 'test' ]
@@ -56,8 +56,7 @@ module Waterpig
56
56
  def save_snapshot(dir, name)
57
57
  require 'fileutils'
58
58
 
59
- dir = "tmp/#{dir}"
60
-
59
+ dir = File.join(config.waterpig_snapshot_dir, dir)
61
60
  base_path = "#{dir}/#{"%03i" % frame_index(dir)}-#{name}"
62
61
 
63
62
  img_path = base_path + ".png"
@@ -1,7 +1,7 @@
1
1
  module Waterpig
2
2
  module SnapStep
3
3
  def self.included(steps)
4
- steps.after(:step) do |example|
4
+ steps.after(:each) do |example|
5
5
  save_snapshot(example.metadata[:snapshots_into], example.description.downcase.gsub(/\s+/, "-"))
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: waterpig
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Judson Lester
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-09-21 00:00:00.000000000 Z
12
+ date: 2015-12-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capybara
@@ -43,16 +43,16 @@ dependencies:
43
43
  name: rspec-steps
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - '>'
46
+ - - ~>
47
47
  - !ruby/object:Gem::Version
48
- version: '0'
48
+ version: '2.0'
49
49
  type: :runtime
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
- - - '>'
53
+ - - ~>
54
54
  - !ruby/object:Gem::Version
55
- version: '0'
55
+ version: '2.0'
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: text-table
58
58
  requirement: !ruby/object:Gem::Requirement
@@ -106,7 +106,7 @@ rdoc_options:
106
106
  - --main
107
107
  - doc/README
108
108
  - --title
109
- - waterpig-0.11.0 Documentation
109
+ - waterpig-0.12.0 Documentation
110
110
  require_paths:
111
111
  - lib/
112
112
  required_ruby_version: !ruby/object:Gem::Requirement