capybara-screenshot 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +6 -0
- data/capybara-screenshot.gemspec +0 -1
- data/lib/capybara-screenshot/saver.rb +1 -2
- data/lib/capybara-screenshot/version.rb +1 -1
- metadata +7 -22
data/CHANGELOG.md
CHANGED
data/capybara-screenshot.gemspec
CHANGED
@@ -22,8 +22,7 @@ module Capybara
|
|
22
22
|
# Sinatra support, untested
|
23
23
|
screenshot_path = File.join(settings.root, "#{capybara.save_and_open_page_path}/#{file_base_name}.png")
|
24
24
|
else
|
25
|
-
|
26
|
-
screenshot_path = "#{file_base_name}.png"
|
25
|
+
screenshot_path = File.join(capybara.save_and_open_page_path.to_s, "#{file_base_name}.png")
|
27
26
|
end
|
28
27
|
|
29
28
|
#We try to figure out how to call the screenshot method on the current driver
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capybara-screenshot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 11
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 8
|
10
|
+
version: 0.1.8
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Matthew O'Riordan
|
@@ -15,11 +15,11 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2012-01-03 00:00:00 +00:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
|
-
name:
|
22
|
+
name: capybara
|
23
23
|
prerelease: false
|
24
24
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
25
|
none: false
|
@@ -33,25 +33,10 @@ dependencies:
|
|
33
33
|
version: "1.0"
|
34
34
|
type: :runtime
|
35
35
|
version_requirements: *id001
|
36
|
-
- !ruby/object:Gem::Dependency
|
37
|
-
name: capybara
|
38
|
-
prerelease: false
|
39
|
-
requirement: &id002 !ruby/object:Gem::Requirement
|
40
|
-
none: false
|
41
|
-
requirements:
|
42
|
-
- - ">="
|
43
|
-
- !ruby/object:Gem::Version
|
44
|
-
hash: 15
|
45
|
-
segments:
|
46
|
-
- 1
|
47
|
-
- 0
|
48
|
-
version: "1.0"
|
49
|
-
type: :runtime
|
50
|
-
version_requirements: *id002
|
51
36
|
- !ruby/object:Gem::Dependency
|
52
37
|
name: rspec
|
53
38
|
prerelease: false
|
54
|
-
requirement: &
|
39
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
55
40
|
none: false
|
56
41
|
requirements:
|
57
42
|
- - ~>
|
@@ -62,7 +47,7 @@ dependencies:
|
|
62
47
|
- 6
|
63
48
|
version: "2.6"
|
64
49
|
type: :development
|
65
|
-
version_requirements: *
|
50
|
+
version_requirements: *id002
|
66
51
|
description: When a Cucumber step fails, it is useful to create a screenshot image and HTML file of the current page
|
67
52
|
email:
|
68
53
|
- matthew.oriordan@gmail.com
|