rspec-rails 3.8.0 → 3.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/Changelog.md +15 -0
- data/lib/generators/rspec/feature/feature_generator.rb +2 -2
- data/lib/rspec/rails/fixture_file_upload_support.rb +1 -1
- data/lib/rspec/rails/matchers/active_job.rb +9 -3
- data/lib/rspec/rails/version.rb +1 -1
- metadata +9 -4
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 35b6fba337e6c764e78383822b50a60906fbc279
|
4
|
+
data.tar.gz: 438429f0eaac9ecc41ab27aba413d22db08298eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dfbdeadf6bdcdbef51cdf3fe111021788fd16a035a12f611c376835a1fe2cbc3672a849ee76d22e1be1c6611597373860864da388c4f1af7a6b200197eb71b2a
|
7
|
+
data.tar.gz: 8bbb895d19fcae396c21d7078928439fce1b7fa13f91670da7f03309b7c5290d8b4f47e74380549a27c0a767a1188385f83f324d0baef4587e1c1ec2a65c57a5
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/Changelog.md
CHANGED
@@ -1,3 +1,18 @@
|
|
1
|
+
### Development
|
2
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.8.1...master)
|
3
|
+
|
4
|
+
### Development
|
5
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.8.0...v3.8.1)
|
6
|
+
|
7
|
+
Bug Fixes:
|
8
|
+
|
9
|
+
* Fix `NoMethodError: undefined method 'strip'` when using a `Pathname` object
|
10
|
+
as the fixture file path. (Aaron Kromer, #2026)
|
11
|
+
* When generating feature specs, do not duplicate namespace in the path name.
|
12
|
+
(Laura Paakkinen, #2034)
|
13
|
+
* Prevent `ActiveJob::DeserializationError` from being issued when `ActiveJob`
|
14
|
+
matchers de-serialize arguments. (@aymeric-ledorze, #2036)
|
15
|
+
|
1
16
|
### 3.8.0 / 2018-08-04
|
2
17
|
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.7.2...v3.8.0)
|
3
18
|
|
@@ -8,7 +8,7 @@ module RSpec
|
|
8
8
|
|
9
9
|
def rails_fixture_file_wrapper
|
10
10
|
RailsFixtureFileWrapper.fixture_path = nil
|
11
|
-
resolved_fixture_path = (fixture_path || RSpec.configuration.fixture_path || '')
|
11
|
+
resolved_fixture_path = (fixture_path || RSpec.configuration.fixture_path || '').to_s
|
12
12
|
RailsFixtureFileWrapper.fixture_path = File.join(resolved_fixture_path, '') unless resolved_fixture_path.strip.empty?
|
13
13
|
RailsFixtureFileWrapper.instance
|
14
14
|
end
|
@@ -98,7 +98,7 @@ module RSpec
|
|
98
98
|
def check(jobs)
|
99
99
|
@matching_jobs, @unmatching_jobs = jobs.partition do |job|
|
100
100
|
if arguments_match?(job) && other_attributes_match?(job)
|
101
|
-
args =
|
101
|
+
args = deserialize_arguments(job)
|
102
102
|
@block.call(*args)
|
103
103
|
true
|
104
104
|
else
|
@@ -125,7 +125,7 @@ module RSpec
|
|
125
125
|
|
126
126
|
def base_job_message(job)
|
127
127
|
msg_parts = []
|
128
|
-
msg_parts << "with #{
|
128
|
+
msg_parts << "with #{deserialize_arguments(job)}" if job[:args].any?
|
129
129
|
msg_parts << "on queue #{job[:queue]}" if job[:queue]
|
130
130
|
msg_parts << "at #{Time.at(job[:at])}" if job[:at]
|
131
131
|
|
@@ -136,7 +136,7 @@ module RSpec
|
|
136
136
|
|
137
137
|
def arguments_match?(job)
|
138
138
|
if @args.any?
|
139
|
-
deserialized_args =
|
139
|
+
deserialized_args = deserialize_arguments(job)
|
140
140
|
RSpec::Mocks::ArgumentListMatcher.new(*@args).args_match?(*deserialized_args)
|
141
141
|
else
|
142
142
|
true
|
@@ -169,6 +169,12 @@ module RSpec
|
|
169
169
|
end
|
170
170
|
end
|
171
171
|
|
172
|
+
def deserialize_arguments(job)
|
173
|
+
::ActiveJob::Arguments.deserialize(job[:args])
|
174
|
+
rescue ::ActiveJob::DeserializationError
|
175
|
+
job[:args]
|
176
|
+
end
|
177
|
+
|
172
178
|
def queue_adapter
|
173
179
|
::ActiveJob::Base.queue_adapter
|
174
180
|
end
|
data/lib/rspec/rails/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.8.
|
4
|
+
version: 3.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Chelimsky
|
@@ -44,7 +44,7 @@ cert_chain:
|
|
44
44
|
ZsVDj6a7lH3cNqtWXZxrb2wO38qV5AkYj8SQK7Hj3/Yui9myUX3crr+PdetazSqQ
|
45
45
|
F3MdtaDehhjC
|
46
46
|
-----END CERTIFICATE-----
|
47
|
-
date: 2018-
|
47
|
+
date: 2018-10-23 00:00:00.000000000 Z
|
48
48
|
dependencies:
|
49
49
|
- !ruby/object:Gem::Dependency
|
50
50
|
name: activesupport
|
@@ -276,7 +276,12 @@ files:
|
|
276
276
|
homepage: https://github.com/rspec/rspec-rails
|
277
277
|
licenses:
|
278
278
|
- MIT
|
279
|
-
metadata:
|
279
|
+
metadata:
|
280
|
+
bug_tracker_uri: https://github.com/rspec/rspec-rails/issues
|
281
|
+
changelog_uri: https://github.com/rspec/rspec-rails/blob/v3.8.1/Changelog.md
|
282
|
+
documentation_uri: https://rspec.info/documentation/
|
283
|
+
mailing_list_uri: https://groups.google.com/forum/#!forum/rspec
|
284
|
+
source_code_uri: https://github.com/rspec/rspec-rails
|
280
285
|
post_install_message:
|
281
286
|
rdoc_options:
|
282
287
|
- "--charset=UTF-8"
|
@@ -294,7 +299,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
294
299
|
version: '0'
|
295
300
|
requirements: []
|
296
301
|
rubyforge_project:
|
297
|
-
rubygems_version: 2.
|
302
|
+
rubygems_version: 2.5.2.3
|
298
303
|
signing_key:
|
299
304
|
specification_version: 4
|
300
305
|
summary: RSpec for Rails
|
metadata.gz.sig
CHANGED
Binary file
|