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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ea2d87e6ff8e297370262b9b24149098c96ce7e1
4
- data.tar.gz: 628aaf29946b0d609e2f7312a0135a11e20a54bf
3
+ metadata.gz: 35b6fba337e6c764e78383822b50a60906fbc279
4
+ data.tar.gz: 438429f0eaac9ecc41ab27aba413d22db08298eb
5
5
  SHA512:
6
- metadata.gz: dfb6ef6e01a98df778f5d44e165a1222e3ba7edc9b00ca095f11efe3d17336e6f9fa2ee73b3587527bb51453efafb480372acbfdac4b031f186fb0106aa39218
7
- data.tar.gz: 43a37b04ca888383a5a648597b0daade6b456b4e10a2a69838eaf9fedfb535934853020945a1df54d785e1e478fbd1eb7423a2168f3bb76b37c49c9fa02c351a
6
+ metadata.gz: dfbdeadf6bdcdbef51cdf3fe111021788fd16a035a12f611c376835a1fe2cbc3672a849ee76d22e1be1c6611597373860864da388c4f1af7a6b200197eb71b2a
7
+ data.tar.gz: 8bbb895d19fcae396c21d7078928439fce1b7fa13f91670da7f03309b7c5290d8b4f47e74380549a27c0a767a1188385f83f324d0baef4587e1c1ec2a65c57a5
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -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
 
@@ -19,9 +19,9 @@ module Rspec
19
19
 
20
20
  def filename
21
21
  if options[:singularize]
22
- "#{table_name.singularize}_spec.rb"
22
+ "#{file_name.singularize}_spec.rb"
23
23
  else
24
- "#{table_name}_spec.rb"
24
+ "#{file_name}_spec.rb"
25
25
  end
26
26
  end
27
27
  end
@@ -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 = ::ActiveJob::Arguments.deserialize(job[: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 #{::ActiveJob::Arguments.deserialize(job[:args])}" if job[:args].any?
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 = ::ActiveJob::Arguments.deserialize(job[: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
@@ -3,7 +3,7 @@ module RSpec
3
3
  # Version information for RSpec Rails.
4
4
  module Version
5
5
  # Current version of RSpec Rails, in semantic versioning format.
6
- STRING = '3.8.0'
6
+ STRING = '3.8.1'
7
7
  end
8
8
  end
9
9
  end
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.0
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-08-04 00:00:00.000000000 Z
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.6.13
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