gnawrnip 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6fe6dcc279e3f16ba816e4348d651588d0012594
4
- data.tar.gz: 58614d16197b2f281539529b6c010f6cd609097d
3
+ metadata.gz: a38a9c6325cff5880b71ef2095e4796a44d080f8
4
+ data.tar.gz: cb26f649795c0a05867fe4392d9ab5ca17da7dcf
5
5
  SHA512:
6
- metadata.gz: 9ad73dc09318b71443e7cf7003d1022edf4fe8095fa28cfdeefbbb22da327841f326d82ab77a0194a2d59b99e1368ccb6014d73b697729df19560460b1d77d8e
7
- data.tar.gz: 1833ffb0f79761ca3e4eed6889e1d9c6570ddf750155bc9692f0445e216d311bdd310e012ef05e61f41f8c8ea335c7a4d477f4c1e57736caccf1a29b5e3289ba
6
+ metadata.gz: 54ad4436c2bb40fea58a7dcbca379658e3926c01a9e5275c77495450499d176a11fa77b2cbade1a0732bb0262dfd594800e0b4d10d5f091c77fdf2b2016c85e6
7
+ data.tar.gz: 04164103cae7ffbd5c7fd65fbd0f4be600df172abce903094e652dc309ec17f34429bb3da2b78f51aa287001602ad58e0e212b619c520cf3d2cbb4d6fab4807f
data/.travis.yml CHANGED
@@ -2,4 +2,5 @@ language: ruby
2
2
  rvm:
3
3
  - 1.9.3
4
4
  - 2.0.0
5
+ - 2.1.0
5
6
  script: bundle exec rspec
data/gnawrnip.gemspec CHANGED
@@ -18,8 +18,8 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^spec/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_dependency 'capybara', "~> 2.1"
22
- spec.add_dependency 'turnip_formatter', '~> 0.2.9'
21
+ spec.add_dependency 'capybara', "~> 2.2"
22
+ spec.add_dependency 'turnip_formatter', '~> 0.2.11'
23
23
  spec.add_dependency 'oily_png'
24
24
  spec.add_development_dependency "bundler", "~> 1.3"
25
25
  spec.add_development_dependency "rake"
@@ -3,7 +3,7 @@ require 'capybara/session'
3
3
  module Capybara
4
4
  class Session
5
5
  SAVE_SCREENSHOT_METHODS = NODE_METHODS + [
6
- :visit, :has_title?, :has_no_title?
6
+ :visit, :has_title?, :has_no_title?, :go_back, :go_forward
7
7
  ]
8
8
 
9
9
  SAVE_SCREENSHOT_METHODS.each do |method|
@@ -5,12 +5,19 @@ RSpec.configure do |config|
5
5
  Gnawrnip.ready!
6
6
  end
7
7
 
8
+ # https://github.com/jnicklas/capybara/blob/master/lib/capybara/rspec.rb
9
+ fetch_current_example = RSpec.respond_to?(:current_example) ?
10
+ proc { RSpec.current_example } : proc { |context| context.example }
11
+
8
12
  config.before(:each, turnip: true) do
13
+ example = fetch_current_example.call(self)
9
14
  Gnawrnip.photographer.reset!
10
15
  example.metadata[:gnawrnip] = {}
11
16
  end
12
17
 
13
18
  config.after(:each, turnip: true) do
19
+ example = fetch_current_example.call(self)
20
+
14
21
  if example.exception
15
22
  Gnawrnip.photographer.take_shot
16
23
  screenshots = Gnawrnip.photographer.frames.compact
@@ -1,3 +1,3 @@
1
1
  module Gnawrnip
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
@@ -15,8 +15,8 @@ module Gnawrnip
15
15
  end
16
16
 
17
17
  describe '.add_frame' do
18
- subject { photographer.frames }
19
- it { should have(2).elements }
18
+ subject { photographer.frames.length }
19
+ it { should eq 2 }
20
20
  end
21
21
 
22
22
  describe '.reset!' do
@@ -4,7 +4,7 @@ require 'gnawrnip/rspec'
4
4
  module Gnawrnip
5
5
  describe 'Rspec' do
6
6
  let(:example) do
7
- example = group.example('example', {}) { expect(true).to be_false }
7
+ example = group.example('example', {}) { expect(true).to be false }
8
8
  group.run(
9
9
  Class.new do
10
10
  def self.method_missing(name, *args, &block)
metadata CHANGED
@@ -1,111 +1,111 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gnawrnip
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wataru MIYAGUNI
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-28 00:00:00.000000000 Z
11
+ date: 2014-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capybara
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '2.1'
19
+ version: '2.2'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '2.1'
26
+ version: '2.2'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: turnip_formatter
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.2.9
33
+ version: 0.2.11
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.2.9
40
+ version: 0.2.11
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: oily_png
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: bundler
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
61
  version: '1.3'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ~>
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '1.3'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rake
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rspec
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>='
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - '>='
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: coveralls
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - '>='
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - '>='
108
+ - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  description: Gnawrnip is a TurnipFormatter Add-on that provides put a screen shot
@@ -116,8 +116,8 @@ executables: []
116
116
  extensions: []
117
117
  extra_rdoc_files: []
118
118
  files:
119
- - .gitignore
120
- - .travis.yml
119
+ - ".gitignore"
120
+ - ".travis.yml"
121
121
  - Gemfile
122
122
  - LICENSE.txt
123
123
  - README.md
@@ -157,17 +157,17 @@ require_paths:
157
157
  - lib
158
158
  required_ruby_version: !ruby/object:Gem::Requirement
159
159
  requirements:
160
- - - '>='
160
+ - - ">="
161
161
  - !ruby/object:Gem::Version
162
162
  version: '0'
163
163
  required_rubygems_version: !ruby/object:Gem::Requirement
164
164
  requirements:
165
- - - '>='
165
+ - - ">="
166
166
  - !ruby/object:Gem::Version
167
167
  version: '0'
168
168
  requirements: []
169
169
  rubyforge_project:
170
- rubygems_version: 2.0.14
170
+ rubygems_version: 2.2.0
171
171
  signing_key:
172
172
  specification_version: 4
173
173
  summary: Add-on for TurnipFormatter with Capybara