pickle 0.4.11 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,11 +2,11 @@ require 'spec_helper'
2
2
 
3
3
  describe Pickle do
4
4
  it ".config should be same object on multiple calls" do
5
- Pickle.config.should == Pickle.config
5
+ expect(Pickle.config).to eq(Pickle.config)
6
6
  end
7
7
 
8
8
  it ".configure should configure the .config object" do
9
- Pickle.config.should_receive(:foo).with(:bar)
9
+ expect(Pickle.config).to receive(:foo).with(:bar)
10
10
  Pickle.configure do |c|
11
11
  c.foo :bar
12
12
  end
@@ -14,11 +14,11 @@ describe Pickle do
14
14
 
15
15
  it ".parser should create a parser with the default config" do
16
16
  Pickle.instance_variable_set('@parser', nil)
17
- Pickle::Parser.should_receive(:new).with(:config => Pickle.config)
17
+ expect(Pickle::Parser).to receive(:new).with(:config => Pickle.config)
18
18
  Pickle.parser
19
19
  end
20
20
 
21
21
  it ".parser should be same object on multiple calls" do
22
- Pickle.parser.should == Pickle.parser
22
+ expect(Pickle.parser).to eq(Pickle.parser)
23
23
  end
24
24
  end
@@ -1,8 +1,78 @@
1
- require 'rubygems'
2
- require 'rspec'
3
1
  require 'active_support'
4
2
  require 'active_record'
3
+ require 'factory_girl'
4
+
5
+ $:.unshift(File.expand_path('../../lib', __FILE__))
5
6
 
6
- $:.unshift(File.dirname(__FILE__) + '/../lib')
7
7
  require 'pickle'
8
8
  require 'pickle/adapters/active_record'
9
+
10
+ # This file was generated by the `rspec --init` command. Conventionally, all
11
+ # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
12
+ # The generated `.rspec` file contains `--require spec_helper` which will cause this
13
+ # file to always be loaded, without a need to explicitly require it in any files.
14
+ #
15
+ # Given that it is always loaded, you are encouraged to keep this file as
16
+ # light-weight as possible. Requiring heavyweight dependencies from this file
17
+ # will add to the boot time of your test suite on EVERY test run, even for an
18
+ # individual file that may not need all of that loaded. Instead, make a
19
+ # separate helper file that requires this one and then use it only in the specs
20
+ # that actually need it.
21
+ #
22
+ # The `.rspec` file also contains a few flags that are not defaults but that
23
+ # users commonly want.
24
+ #
25
+ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
26
+ RSpec.configure do |config|
27
+ # These two settings work together to allow you to limit a spec run
28
+ # to individual examples or groups you care about by tagging them with
29
+ # `:focus` metadata. When nothing is tagged with `:focus`, all examples
30
+ # get run.
31
+ config.filter_run :focus
32
+ config.run_all_when_everything_filtered = true
33
+
34
+ # Many RSpec users commonly either run the entire suite or an individual
35
+ # file, and it's useful to allow more verbose output when running an
36
+ # individual spec file.
37
+ if config.files_to_run.one?
38
+ # Use the documentation formatter for detailed output,
39
+ # unless a formatter has already been configured
40
+ # (e.g. via a command-line flag).
41
+ config.default_formatter = 'doc'
42
+ end
43
+
44
+ # Run specs in random order to surface order dependencies. If you find an
45
+ # order dependency and want to debug it, you can fix the order by providing
46
+ # the seed, which is printed after each run.
47
+ # --seed 1234
48
+ config.order = :random
49
+
50
+ # Seed global randomization in this process using the `--seed` CLI option.
51
+ # Setting this allows you to use `--seed` to deterministically reproduce
52
+ # test failures related to randomization by passing the same `--seed` value
53
+ # as the one that triggered the failure.
54
+ Kernel.srand config.seed
55
+
56
+ # rspec-expectations config goes here. You can use an alternate
57
+ # assertion/expectation library such as wrong or the stdlib/minitest
58
+ # assertions if you prefer.
59
+ config.expect_with :rspec do |expectations|
60
+ # Enable only the newer, non-monkey-patching expect syntax.
61
+ # For more details, see:
62
+ # - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
63
+ expectations.syntax = :expect
64
+ end
65
+
66
+ # rspec-mocks config goes here. You can use an alternate test double
67
+ # library (such as bogus or mocha) by changing the `mock_with` option here.
68
+ config.mock_with :rspec do |mocks|
69
+ # Enable only the newer, non-monkey-patching expect syntax.
70
+ # For more details, see:
71
+ # - http://teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
72
+ mocks.syntax = :expect
73
+
74
+ # Prevents you from mocking or stubbing a method that does not exist on
75
+ # a real object. This is generally recommended.
76
+ mocks.verify_partial_doubles = false
77
+ end
78
+ end
metadata CHANGED
@@ -1,263 +1,239 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pickle
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.11
5
- prerelease:
4
+ version: 0.5.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Ian White
8
+ - James Le Cuirot
9
+ - Niklas Hofer
9
10
  autorequire:
10
11
  bindir: bin
11
12
  cert_chain: []
12
- date: 2012-07-06 00:00:00.000000000 Z
13
+ date: 2014-11-16 00:00:00.000000000 Z
13
14
  dependencies:
14
15
  - !ruby/object:Gem::Dependency
15
16
  name: cucumber
16
17
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
18
  requirements:
19
- - - ! '>='
19
+ - - ">="
20
20
  - !ruby/object:Gem::Version
21
21
  version: '0.8'
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
25
  requirements:
27
- - - ! '>='
26
+ - - ">="
28
27
  - !ruby/object:Gem::Version
29
28
  version: '0.8'
30
29
  - !ruby/object:Gem::Dependency
31
30
  name: rake
32
31
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
32
  requirements:
35
- - - ! '>='
33
+ - - ">="
36
34
  - !ruby/object:Gem::Version
37
35
  version: '0'
38
36
  type: :runtime
39
37
  prerelease: false
40
38
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
39
  requirements:
43
- - - ! '>='
40
+ - - ">="
44
41
  - !ruby/object:Gem::Version
45
42
  version: '0'
46
43
  - !ruby/object:Gem::Dependency
47
44
  name: rack
48
45
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
46
  requirements:
51
- - - ! '>='
47
+ - - ">="
52
48
  - !ruby/object:Gem::Version
53
49
  version: '0'
54
50
  type: :development
55
51
  prerelease: false
56
52
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
53
  requirements:
59
- - - ! '>='
54
+ - - ">="
60
55
  - !ruby/object:Gem::Version
61
56
  version: '0'
62
57
  - !ruby/object:Gem::Dependency
63
58
  name: bundler
64
59
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
60
  requirements:
67
- - - ! '>='
61
+ - - ">="
68
62
  - !ruby/object:Gem::Version
69
63
  version: '0'
70
64
  type: :development
71
65
  prerelease: false
72
66
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
67
  requirements:
75
- - - ! '>='
68
+ - - ">="
76
69
  - !ruby/object:Gem::Version
77
70
  version: '0'
78
71
  - !ruby/object:Gem::Dependency
79
72
  name: git
80
73
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
74
  requirements:
83
- - - ! '>='
75
+ - - ">="
84
76
  - !ruby/object:Gem::Version
85
77
  version: '0'
86
78
  type: :development
87
79
  prerelease: false
88
80
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
81
  requirements:
91
- - - ! '>='
82
+ - - ">="
92
83
  - !ruby/object:Gem::Version
93
84
  version: '0'
94
85
  - !ruby/object:Gem::Dependency
95
86
  name: yard
96
87
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
88
  requirements:
99
- - - ! '>='
89
+ - - ">="
100
90
  - !ruby/object:Gem::Version
101
91
  version: '0'
102
92
  type: :development
103
93
  prerelease: false
104
94
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
95
  requirements:
107
- - - ! '>='
96
+ - - ">="
108
97
  - !ruby/object:Gem::Version
109
98
  version: '0'
110
99
  - !ruby/object:Gem::Dependency
111
100
  name: rspec-rails
112
101
  requirement: !ruby/object:Gem::Requirement
113
- none: false
114
102
  requirements:
115
- - - ~>
103
+ - - "~>"
116
104
  - !ruby/object:Gem::Version
117
- version: 2.6.0
105
+ version: '3.0'
118
106
  type: :development
119
107
  prerelease: false
120
108
  version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
109
  requirements:
123
- - - ~>
110
+ - - "~>"
124
111
  - !ruby/object:Gem::Version
125
- version: 2.6.0
112
+ version: '3.0'
126
113
  - !ruby/object:Gem::Dependency
127
114
  name: rails
128
115
  requirement: !ruby/object:Gem::Requirement
129
- none: false
130
116
  requirements:
131
- - - ~>
117
+ - - "~>"
132
118
  - !ruby/object:Gem::Version
133
119
  version: 3.1.0
134
120
  type: :development
135
121
  prerelease: false
136
122
  version_requirements: !ruby/object:Gem::Requirement
137
- none: false
138
123
  requirements:
139
- - - ~>
124
+ - - "~>"
140
125
  - !ruby/object:Gem::Version
141
126
  version: 3.1.0
142
127
  - !ruby/object:Gem::Dependency
143
128
  name: cucumber-rails
144
129
  requirement: !ruby/object:Gem::Requirement
145
- none: false
146
130
  requirements:
147
- - - ! '>='
131
+ - - ">="
148
132
  - !ruby/object:Gem::Version
149
133
  version: '0'
150
134
  type: :development
151
135
  prerelease: false
152
136
  version_requirements: !ruby/object:Gem::Requirement
153
- none: false
154
137
  requirements:
155
- - - ! '>='
138
+ - - ">="
156
139
  - !ruby/object:Gem::Version
157
140
  version: '0'
158
141
  - !ruby/object:Gem::Dependency
159
142
  name: factory_girl
160
143
  requirement: !ruby/object:Gem::Requirement
161
- none: false
162
144
  requirements:
163
- - - ! '>='
145
+ - - ">="
164
146
  - !ruby/object:Gem::Version
165
147
  version: '0'
166
148
  type: :development
167
149
  prerelease: false
168
150
  version_requirements: !ruby/object:Gem::Requirement
169
- none: false
170
151
  requirements:
171
- - - ! '>='
152
+ - - ">="
172
153
  - !ruby/object:Gem::Version
173
154
  version: '0'
174
155
  - !ruby/object:Gem::Dependency
175
156
  name: fabrication
176
157
  requirement: !ruby/object:Gem::Requirement
177
- none: false
178
158
  requirements:
179
- - - ! '>='
159
+ - - "~>"
180
160
  - !ruby/object:Gem::Version
181
- version: '0'
161
+ version: '2.0'
182
162
  type: :development
183
163
  prerelease: false
184
164
  version_requirements: !ruby/object:Gem::Requirement
185
- none: false
186
165
  requirements:
187
- - - ! '>='
166
+ - - "~>"
188
167
  - !ruby/object:Gem::Version
189
- version: '0'
168
+ version: '2.0'
190
169
  - !ruby/object:Gem::Dependency
191
170
  name: machinist
192
171
  requirement: !ruby/object:Gem::Requirement
193
- none: false
194
172
  requirements:
195
- - - ! '>='
173
+ - - "~>"
196
174
  - !ruby/object:Gem::Version
197
- version: '0'
175
+ version: '2.0'
198
176
  type: :development
199
177
  prerelease: false
200
178
  version_requirements: !ruby/object:Gem::Requirement
201
- none: false
202
179
  requirements:
203
- - - ! '>='
180
+ - - "~>"
204
181
  - !ruby/object:Gem::Version
205
- version: '0'
182
+ version: '2.0'
206
183
  - !ruby/object:Gem::Dependency
207
184
  name: database_cleaner
208
185
  requirement: !ruby/object:Gem::Requirement
209
- none: false
210
186
  requirements:
211
- - - ! '>='
187
+ - - ">="
212
188
  - !ruby/object:Gem::Version
213
189
  version: '0'
214
190
  type: :development
215
191
  prerelease: false
216
192
  version_requirements: !ruby/object:Gem::Requirement
217
- none: false
218
193
  requirements:
219
- - - ! '>='
194
+ - - ">="
220
195
  - !ruby/object:Gem::Version
221
196
  version: '0'
222
197
  - !ruby/object:Gem::Dependency
223
198
  name: capybara
224
199
  requirement: !ruby/object:Gem::Requirement
225
- none: false
226
200
  requirements:
227
- - - ! '>='
201
+ - - ">="
228
202
  - !ruby/object:Gem::Version
229
203
  version: '0'
230
204
  type: :development
231
205
  prerelease: false
232
206
  version_requirements: !ruby/object:Gem::Requirement
233
- none: false
234
207
  requirements:
235
- - - ! '>='
208
+ - - ">="
236
209
  - !ruby/object:Gem::Version
237
210
  version: '0'
238
211
  - !ruby/object:Gem::Dependency
239
212
  name: sqlite3-ruby
240
213
  requirement: !ruby/object:Gem::Requirement
241
- none: false
242
214
  requirements:
243
- - - ! '>='
215
+ - - ">="
244
216
  - !ruby/object:Gem::Version
245
217
  version: '0'
246
218
  type: :development
247
219
  prerelease: false
248
220
  version_requirements: !ruby/object:Gem::Requirement
249
- none: false
250
221
  requirements:
251
- - - ! '>='
222
+ - - ">="
252
223
  - !ruby/object:Gem::Version
253
224
  version: '0'
254
225
  description: Easy model creation and reference in your cucumber features
255
- email: ian.w.white@gmail.com
226
+ email:
227
+ - ian.w.white@gmail.com
228
+ - chewi@aura-online.co.uk
229
+ - niklas+dev@lanpartei.de
256
230
  executables: []
257
231
  extensions: []
258
232
  extra_rdoc_files: []
259
233
  files:
260
- - .gitignore
234
+ - ".gitignore"
235
+ - ".rspec"
236
+ - ".travis.yml"
261
237
  - Gemfile
262
238
  - Gemfile.lock.development
263
239
  - History.txt
@@ -332,29 +308,29 @@ files:
332
308
  - spec/pickle/session_spec.rb
333
309
  - spec/pickle_spec.rb
334
310
  - spec/spec_helper.rb
335
- homepage: http://github.com/ianwhite/pickle
336
- licenses: []
311
+ homepage: https://github.com/ianwhite/pickle
312
+ licenses:
313
+ - MIT
314
+ metadata: {}
337
315
  post_install_message:
338
316
  rdoc_options: []
339
317
  require_paths:
340
318
  - lib
341
319
  required_ruby_version: !ruby/object:Gem::Requirement
342
- none: false
343
320
  requirements:
344
- - - ! '>='
321
+ - - ">="
345
322
  - !ruby/object:Gem::Version
346
323
  version: '0'
347
324
  required_rubygems_version: !ruby/object:Gem::Requirement
348
- none: false
349
325
  requirements:
350
- - - ! '>='
326
+ - - ">="
351
327
  - !ruby/object:Gem::Version
352
328
  version: 1.3.6
353
329
  requirements: []
354
330
  rubyforge_project: pickle
355
- rubygems_version: 1.8.24
331
+ rubygems_version: 2.2.2
356
332
  signing_key:
357
- specification_version: 3
333
+ specification_version: 4
358
334
  summary: Easy model creation and reference in your cucumber features.
359
335
  test_files:
360
336
  - features/app/app.rb