autopsy 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/autopsy.rb +9 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 11b52ebfdb042e5bbe6dd6775fc2755a13078a0e
4
- data.tar.gz: 5024c9dccdf6d9ee7a37cc3189e4b80e32ad6325
3
+ metadata.gz: 8649b99898e3ecd05259bdc630ac046ce8f89b1f
4
+ data.tar.gz: 86dec6b0b39db427cecf838113e53c87c6a26e8d
5
5
  SHA512:
6
- metadata.gz: 45bf68703b30cdc6ec7b423e1d308cb0089b45a21d80b9bc1bd1575dc83ffcfd9a00de2153293fb7ce78b13bea1d39520e6a9dd9c202de5384ecd74df56a6654
7
- data.tar.gz: 3d16e4416ad7c37e7dfde75b4d2186f4f2048d5785a97f11d00ff30274cb59a33dec16060fccfe1e5bfcf07ad13c0bd9a39b54a658848235d6e0937932938562
6
+ metadata.gz: 1de0af4b874e0a0bd0b5bc6a325d13d3e11fb146cc588382767513b3f6b90812deea26ca92f23bfeba7b5ededf015cddd79d8467dc3840b6f569a4c64396b727
7
+ data.tar.gz: b43a5bc2b22a305aeaf29083ff0dcc4983b82efe237e89d8f966c105ecd7a99e7ef28737b81e8d8df70db705cbb8d054195e6c325b715a1c4e237a3131f1169b
data/lib/autopsy.rb CHANGED
@@ -2,11 +2,19 @@ require 'rspec'
2
2
  require 'capybara/rspec'
3
3
  require 'awesome_print'
4
4
 
5
+ class Autopsy
6
+ class << self
7
+ attr_accessor :artifacts_path
8
+ end
9
+ end
10
+
11
+ Autopsy.artifacts_path = "./spec/artifacts" # default
12
+
5
13
  RSpec.configure do |config|
6
14
  config.after :each, type: :feature do
7
15
  example = RSpec.current_example
8
16
  if example.exception != nil
9
- file_base = "./spec/artifacts/#{example.file_path.split("/").last.split(".").first}-#{example.metadata[:line_number]}"
17
+ file_base = "#{Autopsy.artifacts_path}/#{example.file_path.split("/").last.split(".").first}-#{example.metadata[:line_number]}"
10
18
  page.save_screenshot "#{file_base}.png"
11
19
  page.save_page "#{file_base}.html"
12
20
  msgs = page.driver.console_messages.ai(html: true)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autopsy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Will Pleasant-Ryan
@@ -18,7 +18,7 @@ extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
20
  - lib/autopsy.rb
21
- homepage: http://rubygems.org/gems/autopsy
21
+ homepage: https://github.com/willryan/autopsy
22
22
  licenses:
23
23
  - MIT
24
24
  metadata: {}