ghostbuster 0.3.4 → 0.3.5
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.
- data/lib/ghostbuster/version.rb +1 -1
- data/lib/ghostbuster.coffee +4 -2
- data/lib/ghostbuster.rb +1 -1
- metadata +4 -4
data/lib/ghostbuster/version.rb
CHANGED
data/lib/ghostbuster.coffee
CHANGED
@@ -57,10 +57,10 @@ class Test
|
|
57
57
|
clearTimeout fatal
|
58
58
|
return if test.seenCallbacks.indexOf(getCallback) != -1
|
59
59
|
test.seenCallbacks.push getCallback # traversing links causes this to get re-fired.
|
60
|
+
if test.runner.useScreenshots()
|
61
|
+
test.page.render test.nameForRender()
|
60
62
|
switch status
|
61
63
|
when 'success'
|
62
|
-
if test.runner.useScreenshots()
|
63
|
-
test.page.render test.nameForRender()
|
64
64
|
test.body = new Body(test)
|
65
65
|
getCallback.call(test) if getCallback
|
66
66
|
when 'fail'
|
@@ -93,6 +93,8 @@ class Assertion
|
|
93
93
|
if @count == 0
|
94
94
|
test.stopTestTimer()
|
95
95
|
fatalCallback = ->
|
96
|
+
if test.runner.useScreenshots()
|
97
|
+
test.page.render test.nameForRender()
|
96
98
|
test.fail(test.getLastError() || "This assertion failed to complete.")
|
97
99
|
@fatal = setTimeout(fatalCallback, assertion.totalTime)
|
98
100
|
@fetcher.call test, (val) ->
|
data/lib/ghostbuster.rb
CHANGED
@@ -37,7 +37,7 @@ class Ghostbuster
|
|
37
37
|
_, status = Process.waitpid2 fork {
|
38
38
|
exec("#{@config.phantom_bin} #{@ghost_lib} #{@config.screenshots?} #{@config.screenshot_x} #{@config.screenshot_y} #{@temporary_screenshot_dir} #{Dir[@config.pattern].to_a.join(' ')}")
|
39
39
|
}
|
40
|
-
if
|
40
|
+
if @config.screenshots?
|
41
41
|
spinner "Copying screenshots" do
|
42
42
|
compress_and_copy_screenshots
|
43
43
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ghostbuster
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 5
|
10
|
+
version: 0.3.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Josh Hull
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-10-
|
18
|
+
date: 2011-10-05 00:00:00 -07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|