Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package rubygem-rspec-rails for
openSUSE:Factory checked in at 2021-01-25 18:23:19
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-rspec-rails (Old)
and /work/SRC/openSUSE:Factory/.rubygem-rspec-rails.new.28504 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-rspec-rails"
Mon Jan 25 18:23:19 2021 rev:3 rq:864577 version:4.0.2
Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-rspec-rails/rubygem-rspec-rails.changes
2020-05-28 09:19:15.741202555 +0200
+++
/work/SRC/openSUSE:Factory/.rubygem-rspec-rails.new.28504/rubygem-rspec-rails.changes
2021-01-25 18:23:37.984429846 +0100
@@ -1,0 +2,7 @@
+Wed Jan 20 07:53:44 UTC 2021 - Manuel Schnitzer <[email protected]>
+
+- updated to version 4.0.2
+
+ * no changelog for this version found
+
+-------------------------------------------------------------------
Old:
----
rspec-rails-4.0.1.gem
New:
----
rspec-rails-4.0.2.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-rspec-rails.spec ++++++
--- /var/tmp/diff_new_pack.ZKbfH1/_old 2021-01-25 18:23:38.624430758 +0100
+++ /var/tmp/diff_new_pack.ZKbfH1/_new 2021-01-25 18:23:38.624430758 +0100
@@ -1,7 +1,7 @@
#
# spec file for package rubygem-rspec-rails
#
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -24,7 +24,7 @@
#
Name: rubygem-rspec-rails
-Version: 4.0.1
+Version: 4.0.2
Release: 0
%define mod_name rspec-rails
%define mod_full_name %{mod_name}-%{version}
++++++ rspec-rails-4.0.1.gem -> rspec-rails-4.0.2.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Changelog.md new/Changelog.md
--- old/Changelog.md 2020-05-16 21:33:20.000000000 +0200
+++ new/Changelog.md 2020-12-26 18:41:39.000000000 +0100
@@ -1,5 +1,14 @@
-### Development
-[Full
Changelog](https://github.com/rspec/rspec-rails/compare/v4.0.1...4-0-development)
+### 4.0.2 / 2020-12-26
+[Full Changelog](https://github.com/rspec/rspec-rails/compare/v4.0.1...v4.0.2)
+
+Bug Fixes:
+
+* Indent all extra failure lines output from system specs. (Alex Robbin, #2321)
+* Generated request spec for update now uses the correct let. (Paul
Hanyzewski, #2344)
+* Return `true`/`false` from predicate methods in config rather than raw
values.
+ (Phil Pirozhkov, Jon Rowe, #2353, #2354)
+* Remove old #fixture_path feature detection code which broke under newer
Rails.
+ (Koen Punt, Jon Rowe, #2370)
### 4.0.1 / 2020-05-16
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v4.0.0...v4.0.1)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/README.md new/README.md
--- old/README.md 2020-05-16 21:33:20.000000000 +0200
+++ new/README.md 2020-12-26 18:41:39.000000000 +0100
@@ -11,7 +11,7 @@
Use **[`rspec-rails` 3.x][]** for Rails earlier than 5.0.
Use **[`rspec-rails` 1.x][]** for Rails 2.x.
-[Build Status]:
https://secure.travis-ci.org/rspec/rspec-rails.svg?branch=master
+[Build Status]: https://secure.travis-ci.org/rspec/rspec-rails.svg?branch=main
[travis-ci]: https://travis-ci.org/rspec/rspec-rails
[Code Climate]: https://codeclimate.com/github/rspec/rspec-rails.svg
[code-climate]: https://codeclimate.com/github/rspec/rspec-rails
@@ -30,14 +30,14 @@
```ruby
# Run against the latest stable release
group :development, :test do
- gem 'rspec-rails', '~> 4.0.0'
+ gem 'rspec-rails', '~> 4.0.1'
end
- # Or, run against the master branch
- # (requires master-branch versions of all related RSpec libraries)
+ # Or, run against the main branch
+ # (requires main-branch versions of all related RSpec libraries)
group :development, :test do
%w[rspec-core rspec-expectations rspec-mocks rspec-rails
rspec-support].each do |lib|
- gem lib, git: "https://github.com/rspec/#{lib}.git", branch: 'master'
+ gem lib, git: "https://github.com/rspec/#{lib}.git", branch: 'main'
end
end
```
@@ -184,17 +184,17 @@
here are some extras that make it easier
to test the various parts of a Rails system:
-| RSpec matcher | Delegates to | Available in
| Notes |
-| ------------------------ | ----------------- |
------------------------------- |
-------------------------------------------------------- |
-| [`be_a_new`][] | | all
| primarily intended for controller specs |
-| [`render_template`][] | `assert_template` | request / controller / view
| use with `expect(response).to` |
-| [`redirect_to`][] | `assert_redirect` | request / controller
| use with `expect(response).to` |
-| [`route_to`] | `assert_routing` | routing / controller
| use with `expect(...).to route_to` |
-| [`be_routable`] | | routing / controller
| use with `expect(...).not_to be_routable` |
-| [`have_http_status`][] | | request / controller /
feature | |
-| [`match_array`][] | | all
| for comparing arrays of ActiveRecord objects |
-| [`have_been_enqueued`][] | | all
| requires config: `ActiveJob::Base.queue_adapter = :test` |
-| [`have_enqueued_job`][] | | all
| requires config: `ActiveJob::Base.queue_adapter = :test` |
+| RSpec matcher | Delegates to | Available in
| Notes |
+| ------------------------ | ------------------- |
------------------------------- |
-------------------------------------------------------- |
+| [`be_a_new`][] | | all
| primarily intended for controller specs |
+| [`render_template`][] | `assert_template` | request / controller / view
| use with `expect(response).to` |
+| [`redirect_to`][] | `assert_redirect` | request / controller
| use with `expect(response).to` |
+| [`route_to`] | `assert_recognizes` | routing / controller
| use with `expect(...).to route_to` |
+| [`be_routable`] | | routing / controller
| use with `expect(...).not_to be_routable` |
+| [`have_http_status`][] | | request / controller /
feature | |
+| [`match_array`][] | | all
| for comparing arrays of ActiveRecord objects |
+| [`have_been_enqueued`][] | | all
| requires config: `ActiveJob::Base.queue_adapter = :test` |
+| [`have_enqueued_job`][] | | all
| requires config: `ActiveJob::Base.queue_adapter = :test` |
Follow the links above for examples of how each matcher is used.
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
Binary files old/checksums.yaml.gz.sig and new/checksums.yaml.gz.sig differ
Binary files old/data.tar.gz.sig and new/data.tar.gz.sig differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/lib/generators/rspec/scaffold/templates/api_request_spec.rb
new/lib/generators/rspec/scaffold/templates/api_request_spec.rb
--- old/lib/generators/rspec/scaffold/templates/api_request_spec.rb
2020-05-16 21:33:20.000000000 +0200
+++ new/lib/generators/rspec/scaffold/templates/api_request_spec.rb
2020-12-26 18:41:39.000000000 +0100
@@ -94,7 +94,7 @@
it "updates the requested <%= ns_file_name %>" do
<%= file_name %> = <%= class_name %>.create! valid_attributes
patch <%= show_helper.tr('@', '') %>,
- params: { <%= singular_table_name %>: invalid_attributes },
headers: valid_headers, as: :json
+ params: { <%= singular_table_name %>: new_attributes }, headers:
valid_headers, as: :json
<%= file_name %>.reload
skip("Add assertions for updated state")
end
@@ -102,9 +102,9 @@
it "renders a JSON response with the <%= ns_file_name %>" do
<%= file_name %> = <%= class_name %>.create! valid_attributes
patch <%= show_helper.tr('@', '') %>,
- params: { <%= singular_table_name %>: invalid_attributes },
headers: valid_headers, as: :json
+ params: { <%= singular_table_name %>: new_attributes }, headers:
valid_headers, as: :json
expect(response).to have_http_status(:ok)
- expect(response.content_type).to eq("application/json")
+ expect(response.content_type).to
match(a_string_including("application/json"))
end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/rspec/rails/configuration.rb
new/lib/rspec/rails/configuration.rb
--- old/lib/rspec/rails/configuration.rb 2020-05-16 21:33:20.000000000
+0200
+++ new/lib/rspec/rails/configuration.rb 2020-12-26 18:41:39.000000000
+0100
@@ -1,3 +1,4 @@
+# rubocop: disable Metrics/ModuleLength
module RSpec
module Rails
# Fake class to document RSpec Rails configuration options. In practice,
@@ -55,7 +56,7 @@
end
# @private
- def self.initialize_configuration(config) # rubocop:disable
Metrics/MethodLength
+ def self.initialize_configuration(config) # rubocop:disable
Metrics/MethodLength,Metrics/CyclomaticComplexity
config.backtrace_exclusion_patterns << /vendor\//
config.backtrace_exclusion_patterns << %r{lib/rspec/rails}
@@ -105,7 +106,41 @@
end
def render_views?
- rendering_views
+ rendering_views?
+ end
+
+ undef :rendering_views? if respond_to?(:rendering_views?)
+ def rendering_views?
+ !!rendering_views
+ end
+
+ # Define boolean predicates rather than relying on rspec-core due
+ # to the bug fix in rspec/rspec-core#2736, note some of these
+ # predicates are a bit nonsensical, but they exist for backwards
+ # compatibility, we can tidy these up in `rspec-rails` 5.
+ undef :fixture_path? if respond_to?(:fixture_path?)
+ def fixture_path?
+ !!fixture_path
+ end
+
+ undef :global_fixtures? if respond_to?(:global_fixtures?)
+ def global_fixtures?
+ !!global_fixtures
+ end
+
+ undef :infer_base_class_for_anonymous_controllers? if
respond_to?(:infer_base_class_for_anonymous_controllers?)
+ def infer_base_class_for_anonymous_controllers?
+ !!infer_base_class_for_anonymous_controllers
+ end
+
+ undef :use_instantiated_fixtures? if
respond_to?(:use_instantiated_fixtures?)
+ def use_instantiated_fixtures?
+ !!use_instantiated_fixtures
+ end
+
+ undef :use_transactional_fixtures? if
respond_to?(:use_transactional_fixtures?)
+ def use_transactional_fixtures?
+ !!use_transactional_fixtures
end
def infer_spec_type_from_file_location!
@@ -156,3 +191,4 @@
initialize_configuration RSpec.configuration
end
end
+# rubocop: enable Metrics/ModuleLength
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/rspec/rails/example/mailbox_example_group.rb
new/lib/rspec/rails/example/mailbox_example_group.rb
--- old/lib/rspec/rails/example/mailbox_example_group.rb 2020-05-16
21:33:20.000000000 +0200
+++ new/lib/rspec/rails/example/mailbox_example_group.rb 2020-12-26
18:41:39.000000000 +0100
@@ -13,7 +13,7 @@
def self.create_inbound_email(arg)
case arg
when Hash
- create_inbound_email_from_mail(arg)
+ create_inbound_email_from_mail(**arg)
else
create_inbound_email_from_source(arg.to_s)
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/rspec/rails/example/system_example_group.rb
new/lib/rspec/rails/example/system_example_group.rb
--- old/lib/rspec/rails/example/system_example_group.rb 2020-05-16
21:33:20.000000000 +0200
+++ new/lib/rspec/rails/example/system_example_group.rb 2020-12-26
18:41:39.000000000 +0100
@@ -114,7 +114,8 @@
original_after_teardown.bind(self).call
ensure
myio = $stdout
- RSpec.current_example.metadata[:extra_failure_lines] = myio.string
+ myio.rewind
+ RSpec.current_example.metadata[:extra_failure_lines] =
myio.readlines
$stdout = orig_stdout
end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/rspec/rails/extensions/active_record/proxy.rb
new/lib/rspec/rails/extensions/active_record/proxy.rb
--- old/lib/rspec/rails/extensions/active_record/proxy.rb 2020-05-16
21:33:20.000000000 +0200
+++ new/lib/rspec/rails/extensions/active_record/proxy.rb 2020-12-26
18:41:39.000000000 +0100
@@ -1,7 +1,10 @@
RSpec.configure do |rspec|
# Delay this in order to give users a chance to configure `expect_with`...
rspec.before(:suite) do
- if defined?(RSpec::Matchers) &&
RSpec::Matchers.configuration.syntax.include?(:should) &&
defined?(ActiveRecord::Associations)
+ if defined?(RSpec::Matchers) &&
+ RSpec::Matchers.configuration.respond_to?(:syntax) && # RSpec 4
dropped support for monkey-patching `should` syntax
+ RSpec::Matchers.configuration.syntax.include?(:should) &&
+ defined?(ActiveRecord::Associations)
RSpec::Matchers.configuration.add_should_and_should_not_to
ActiveRecord::Associations::CollectionProxy
end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/rspec/rails/fixture_file_upload_support.rb
new/lib/rspec/rails/fixture_file_upload_support.rb
--- old/lib/rspec/rails/fixture_file_upload_support.rb 2020-05-16
21:33:20.000000000 +0200
+++ new/lib/rspec/rails/fixture_file_upload_support.rb 2020-12-26
18:41:39.000000000 +0100
@@ -8,7 +8,12 @@
def rails_fixture_file_wrapper
RailsFixtureFileWrapper.fixture_path = nil
- resolved_fixture_path = (fixture_path ||
RSpec.configuration.fixture_path || '').to_s
+ resolved_fixture_path =
+ if respond_to?(:fixture_path) && !fixture_path.nil?
+ fixture_path.to_s
+ else
+ (RSpec.configuration.fixture_path || '').to_s
+ end
RailsFixtureFileWrapper.fixture_path =
File.join(resolved_fixture_path, '') unless resolved_fixture_path.strip.empty?
RailsFixtureFileWrapper.instance
end
@@ -17,22 +22,12 @@
include ActionDispatch::TestProcess if
defined?(ActionDispatch::TestProcess)
class << self
- attr_reader :fixture_path
+ attr_accessor :fixture_path
# Get instance of wrapper
def instance
@instance ||= new
end
-
- # Override fixture_path set
- # to support Rails 3.0->3.1 using ActionController::TestCase class
to resolve fixture_path
- # see
https://apidock.com/rails/v3.0.0/ActionDispatch/TestProcess/fixture_file_upload
- def fixture_path=(value)
- if ActionController::TestCase.respond_to?(:fixture_path)
- ActionController::TestCase.fixture_path = value
- end
- @fixture_path = value
- end
end
end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/rspec/rails/matchers/relation_match_array.rb
new/lib/rspec/rails/matchers/relation_match_array.rb
--- old/lib/rspec/rails/matchers/relation_match_array.rb 2020-05-16
21:33:20.000000000 +0200
+++ new/lib/rspec/rails/matchers/relation_match_array.rb 2020-12-26
18:41:39.000000000 +0100
@@ -1,3 +1,3 @@
-if defined?(ActiveRecord::Relation)
+if defined?(ActiveRecord::Relation) &&
defined?(RSpec::Matchers::BuiltIn::OperatorMatcher) # RSpec 4 removed
OperatorMatcher
RSpec::Matchers::BuiltIn::OperatorMatcher.register(ActiveRecord::Relation,
'=~', RSpec::Matchers::BuiltIn::ContainExactly)
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/rspec/rails/version.rb
new/lib/rspec/rails/version.rb
--- old/lib/rspec/rails/version.rb 2020-05-16 21:33:20.000000000 +0200
+++ new/lib/rspec/rails/version.rb 2020-12-26 18:41:39.000000000 +0100
@@ -3,7 +3,7 @@
# Version information for RSpec Rails.
module Version
# Current version of RSpec Rails, in semantic versioning format.
- STRING = '4.0.1'
+ STRING = '4.0.2'
end
end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2020-05-16 21:33:20.000000000 +0200
+++ new/metadata 2020-12-26 18:41:39.000000000 +0100
@@ -1,12 +1,12 @@
--- !ruby/object:Gem::Specification
name: rspec-rails
version: !ruby/object:Gem::Version
- version: 4.0.1
+ version: 4.0.2
platform: ruby
authors:
- David Chelimsky
- Andy Lindeman
-autorequire:
+autorequire:
bindir: bin
cert_chain:
- |
@@ -44,7 +44,7 @@
ZsVDj6a7lH3cNqtWXZxrb2wO38qV5AkYj8SQK7Hj3/Yui9myUX3crr+PdetazSqQ
F3MdtaDehhjC
-----END CERTIFICATE-----
-date: 2020-05-16 00:00:00.000000000 Z
+date: 2020-12-26 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: actionpack
@@ -94,56 +94,56 @@
requirements:
- - "~>"
- !ruby/object:Gem::Version
- version: '3.9'
+ version: '3.10'
type: :runtime
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - "~>"
- !ruby/object:Gem::Version
- version: '3.9'
+ version: '3.10'
- !ruby/object:Gem::Dependency
name: rspec-expectations
requirement: !ruby/object:Gem::Requirement
requirements:
- - "~>"
- !ruby/object:Gem::Version
- version: '3.9'
+ version: '3.10'
type: :runtime
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - "~>"
- !ruby/object:Gem::Version
- version: '3.9'
+ version: '3.10'
- !ruby/object:Gem::Dependency
name: rspec-mocks
requirement: !ruby/object:Gem::Requirement
requirements:
- - "~>"
- !ruby/object:Gem::Version
- version: '3.9'
+ version: '3.10'
type: :runtime
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - "~>"
- !ruby/object:Gem::Version
- version: '3.9'
+ version: '3.10'
- !ruby/object:Gem::Dependency
name: rspec-support
requirement: !ruby/object:Gem::Requirement
requirements:
- - "~>"
- !ruby/object:Gem::Version
- version: '3.9'
+ version: '3.10'
type: :runtime
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - "~>"
- !ruby/object:Gem::Version
- version: '3.9'
+ version: '3.10'
- !ruby/object:Gem::Dependency
name: ammeter
requirement: !ruby/object:Gem::Requirement
@@ -296,11 +296,11 @@
- MIT
metadata:
bug_tracker_uri: https://github.com/rspec/rspec-rails/issues
- changelog_uri: https://github.com/rspec/rspec-rails/blob/v4.0.1/Changelog.md
+ changelog_uri: https://github.com/rspec/rspec-rails/blob/v4.0.2/Changelog.md
documentation_uri: https://rspec.info/documentation/
mailing_list_uri: https://groups.google.com/forum/#!forum/rspec
source_code_uri: https://github.com/rspec/rspec-rails
-post_install_message:
+post_install_message:
rdoc_options:
- "--charset=UTF-8"
require_paths:
@@ -316,8 +316,8 @@
- !ruby/object:Gem::Version
version: '0'
requirements: []
-rubygems_version: 3.1.3
-signing_key:
+rubygems_version: 3.1.4
+signing_key:
specification_version: 4
summary: RSpec for Rails
test_files: []
Binary files old/metadata.gz.sig and new/metadata.gz.sig differ