cucumber-cinema 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +3 -0
- data/VERSION +1 -1
- data/cucumber-cinema.gemspec +1 -1
- data/lib/cucumber-cinema.rb +10 -9
- metadata +3 -3
data/README.rdoc
CHANGED
@@ -22,6 +22,9 @@ Add this to features/support/cucumber_screenhot.rb
|
|
22
22
|
screenshot_emails
|
23
23
|
end
|
24
24
|
|
25
|
+
Enable cucumber cinema
|
26
|
+
export CUCUMBER_CINEMA=true
|
27
|
+
|
25
28
|
Run your cucumber suite and screenshots will be generated in directory tmp/capybara
|
26
29
|
|
27
30
|
Doesn't workwith spork yet
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
1
|
+
0.6.2
|
data/cucumber-cinema.gemspec
CHANGED
data/lib/cucumber-cinema.rb
CHANGED
@@ -15,18 +15,19 @@ module CucumberCinema
|
|
15
15
|
end
|
16
16
|
|
17
17
|
#DOESN' WORK WITH Spork Yet
|
18
|
-
|
19
|
-
module
|
18
|
+
if ENV['CUCUMBER_CINEMA']
|
19
|
+
module ActionView
|
20
|
+
module Rendering
|
20
21
|
|
21
|
-
|
22
|
+
alias_method :render_old, :render
|
22
23
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
24
|
+
def render(options = {}, locals = {}, &block)
|
25
|
+
if CucumberCinema::ViewSelectStrategy.take_screenshot?(request)
|
26
|
+
body = render_old(options, locals, &block)
|
27
|
+
::CucumberCinema::Camera.new.take_screenshot(body)
|
28
|
+
end
|
29
|
+
render_old(options, locals, &block)
|
27
30
|
end
|
28
|
-
render_old(options, locals, &block)
|
29
31
|
end
|
30
32
|
end
|
31
33
|
end
|
32
|
-
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cucumber-cinema
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 3
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 6
|
9
|
-
-
|
10
|
-
version: 0.6.
|
9
|
+
- 2
|
10
|
+
version: 0.6.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ilya Katz
|