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 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
1
+ 0.6.2
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{cucumber-cinema}
8
- s.version = "0.6.1"
8
+ s.version = "0.6.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = [%q{Ilya Katz}]
@@ -15,18 +15,19 @@ module CucumberCinema
15
15
  end
16
16
 
17
17
  #DOESN' WORK WITH Spork Yet
18
- module ActionView
19
- module Rendering
18
+ if ENV['CUCUMBER_CINEMA']
19
+ module ActionView
20
+ module Rendering
20
21
 
21
- alias_method :render_old, :render
22
+ alias_method :render_old, :render
22
23
 
23
- def render(options = {}, locals = {}, &block)
24
- if CucumberCinema::ViewSelectStrategy.take_screenshot?(request)
25
- body = render_old(options, locals, &block)
26
- ::CucumberCinema::Camera.new.take_screenshot(body)
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: 5
4
+ hash: 3
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 1
10
- version: 0.6.1
9
+ - 2
10
+ version: 0.6.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ilya Katz