Module: RSpec
+ Module: RSpec
+
+
-
-
-
+
- - Defined in:
- - lib/rspec-rails.rb,
- lib/rspec/rails/version.rb,
lib/rspec/rails/adapters.rb,
lib/rspec/rails/matchers.rb,
lib/rspec/rails/view_assigns.rb,
lib/rspec/rails/configuration.rb,
lib/rspec/rails/feature_check.rb,
lib/rspec/rails/active_record.rb,
lib/rspec/rails/view_rendering.rb,
lib/rspec/rails/fixture_support.rb,
lib/rspec/rails/view_path_builder.rb,
lib/rspec/rails/matchers/be_valid.rb,
lib/rspec/rails/matchers/be_a_new.rb,
lib/rspec/rails/view_spec_methods.rb,
lib/rspec/rails/matchers/active_job.rb,
lib/rspec/rails/matchers/redirect_to.rb,
lib/rspec/rails/file_fixture_support.rb,
lib/rspec/rails/matchers/base_matcher.rb,
lib/rspec/rails/matchers/have_rendered.rb,
lib/rspec/rails/matchers/be_new_record.rb,
lib/rspec/rails/matchers/routing_matchers.rb,
lib/rspec/rails/example/job_example_group.rb,
lib/rspec/rails/example/job_example_group.rb,
lib/rspec/rails/matchers/have_http_status.rb,
lib/rspec/rails/example/view_example_group.rb,
lib/rspec/rails/matchers/have_enqueued_mail.rb,
lib/rspec/rails/fixture_file_upload_support.rb,
lib/rspec/rails/example/model_example_group.rb,
lib/rspec/rails/example/rails_example_group.rb,
lib/rspec/rails/example/mailer_example_group.rb,
lib/rspec/rails/example/mailer_example_group.rb,
lib/rspec/rails/example/helper_example_group.rb,
lib/rspec/rails/example/system_example_group.rb,
lib/rspec/rails/example/request_example_group.rb,
lib/rspec/rails/example/routing_example_group.rb,
lib/rspec/rails/example/feature_example_group.rb,
lib/rspec/rails/example/controller_example_group.rb
+
+
+
+ - Defined in:
+ - lib/rspec-rails.rb,
+ lib/rspec/rails/version.rb,
lib/rspec/rails/adapters.rb,
lib/rspec/rails/matchers.rb,
lib/rspec/rails/view_assigns.rb,
lib/rspec/rails/active_record.rb,
lib/rspec/rails/configuration.rb,
lib/rspec/rails/feature_check.rb,
lib/rspec/rails/view_rendering.rb,
lib/rspec/rails/fixture_support.rb,
lib/rspec/rails/matchers/be_a_new.rb,
lib/rspec/rails/matchers/be_valid.rb,
lib/rspec/rails/view_path_builder.rb,
lib/rspec/rails/view_spec_methods.rb,
lib/rspec/rails/matchers/active_job.rb,
lib/rspec/rails/file_fixture_support.rb,
lib/rspec/rails/matchers/redirect_to.rb,
lib/rspec/rails/matchers/action_cable.rb,
lib/rspec/rails/matchers/base_matcher.rb,
lib/rspec/rails/matchers/be_new_record.rb,
lib/rspec/rails/matchers/have_rendered.rb,
lib/rspec/rails/matchers/action_mailbox.rb,
lib/rspec/rails/example/job_example_group.rb,
lib/rspec/rails/example/job_example_group.rb,
lib/rspec/rails/matchers/have_http_status.rb,
lib/rspec/rails/matchers/routing_matchers.rb,
lib/rspec/rails/example/view_example_group.rb,
lib/rspec/rails/example/model_example_group.rb,
lib/rspec/rails/example/rails_example_group.rb,
lib/rspec/rails/fixture_file_upload_support.rb,
lib/rspec/rails/matchers/have_enqueued_mail.rb,
lib/rspec/rails/example/helper_example_group.rb,
lib/rspec/rails/example/mailer_example_group.rb,
lib/rspec/rails/example/mailer_example_group.rb,
lib/rspec/rails/example/system_example_group.rb,
lib/rspec/rails/example/channel_example_group.rb,
lib/rspec/rails/example/channel_example_group.rb,
lib/rspec/rails/example/feature_example_group.rb,
lib/rspec/rails/example/mailbox_example_group.rb,
lib/rspec/rails/example/request_example_group.rb,
lib/rspec/rails/example/routing_example_group.rb,
lib/rspec/rails/example/controller_example_group.rb,
lib/rspec/rails/matchers/action_cable/have_streams.rb,
lib/rspec/rails/matchers/action_cable/have_broadcasted_to.rb
+
-
-
+
Overview
@@ -123,10 +121,10 @@ Overview
-
- Generated on Tue Oct 8 11:39:25 2019 by
+
+ Generated on Thu Jan 2 10:07:34 2020 by
yard
- 0.8.7.6 (ruby-2.6.5).
+ 0.9.22 (ruby-2.7.0).
+
-
+
\ No newline at end of file
diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails.html b/source/documentation/3.9/rspec-rails/RSpec/Rails.html
index 00aa55038..b8026ce3e 100644
--- a/source/documentation/3.9/rspec-rails/RSpec/Rails.html
+++ b/source/documentation/3.9/rspec-rails/RSpec/Rails.html
@@ -1,92 +1,90 @@
-
-
+
+
Module: RSpec::Rails
- — Documentation by YARD 0.8.7.6
+ — Documentation by YARD 0.9.22
-
+
-
+
-
+
-
-
+
-
+
-
-
+
+
+
+
+
+
+
+
-
+
-
-
+
+
-
-
- Module: RSpec::Rails
+ Module: RSpec::Rails
+
+
-
-
-
+
+
+
- - Defined in:
- - lib/rspec-rails.rb,
- lib/rspec/rails/version.rb,
lib/rspec/rails/adapters.rb,
lib/rspec/rails/matchers.rb,
lib/rspec/rails/view_assigns.rb,
lib/rspec/rails/configuration.rb,
lib/rspec/rails/feature_check.rb,
lib/rspec/rails/active_record.rb,
lib/rspec/rails/view_rendering.rb,
lib/rspec/rails/fixture_support.rb,
lib/rspec/rails/view_path_builder.rb,
lib/rspec/rails/matchers/be_valid.rb,
lib/rspec/rails/matchers/be_a_new.rb,
lib/rspec/rails/view_spec_methods.rb,
lib/rspec/rails/matchers/active_job.rb,
lib/rspec/rails/matchers/redirect_to.rb,
lib/rspec/rails/file_fixture_support.rb,
lib/rspec/rails/matchers/base_matcher.rb,
lib/rspec/rails/matchers/have_rendered.rb,
lib/rspec/rails/matchers/be_new_record.rb,
lib/rspec/rails/matchers/routing_matchers.rb,
lib/rspec/rails/example/job_example_group.rb,
lib/rspec/rails/example/job_example_group.rb,
lib/rspec/rails/matchers/have_http_status.rb,
lib/rspec/rails/example/view_example_group.rb,
lib/rspec/rails/matchers/have_enqueued_mail.rb,
lib/rspec/rails/fixture_file_upload_support.rb,
lib/rspec/rails/example/model_example_group.rb,
lib/rspec/rails/example/rails_example_group.rb,
lib/rspec/rails/example/mailer_example_group.rb,
lib/rspec/rails/example/mailer_example_group.rb,
lib/rspec/rails/example/helper_example_group.rb,
lib/rspec/rails/example/system_example_group.rb,
lib/rspec/rails/example/request_example_group.rb,
lib/rspec/rails/example/routing_example_group.rb,
lib/rspec/rails/example/feature_example_group.rb,
lib/rspec/rails/example/controller_example_group.rb
+
+ - Defined in:
+ - lib/rspec-rails.rb,
+ lib/rspec/rails/version.rb,
lib/rspec/rails/adapters.rb,
lib/rspec/rails/matchers.rb,
lib/rspec/rails/view_assigns.rb,
lib/rspec/rails/active_record.rb,
lib/rspec/rails/configuration.rb,
lib/rspec/rails/feature_check.rb,
lib/rspec/rails/view_rendering.rb,
lib/rspec/rails/fixture_support.rb,
lib/rspec/rails/matchers/be_a_new.rb,
lib/rspec/rails/matchers/be_valid.rb,
lib/rspec/rails/view_path_builder.rb,
lib/rspec/rails/view_spec_methods.rb,
lib/rspec/rails/matchers/active_job.rb,
lib/rspec/rails/file_fixture_support.rb,
lib/rspec/rails/matchers/redirect_to.rb,
lib/rspec/rails/matchers/action_cable.rb,
lib/rspec/rails/matchers/base_matcher.rb,
lib/rspec/rails/matchers/be_new_record.rb,
lib/rspec/rails/matchers/have_rendered.rb,
lib/rspec/rails/matchers/action_mailbox.rb,
lib/rspec/rails/example/job_example_group.rb,
lib/rspec/rails/example/job_example_group.rb,
lib/rspec/rails/matchers/have_http_status.rb,
lib/rspec/rails/matchers/routing_matchers.rb,
lib/rspec/rails/example/view_example_group.rb,
lib/rspec/rails/example/model_example_group.rb,
lib/rspec/rails/example/rails_example_group.rb,
lib/rspec/rails/fixture_file_upload_support.rb,
lib/rspec/rails/matchers/have_enqueued_mail.rb,
lib/rspec/rails/example/helper_example_group.rb,
lib/rspec/rails/example/mailer_example_group.rb,
lib/rspec/rails/example/mailer_example_group.rb,
lib/rspec/rails/example/system_example_group.rb,
lib/rspec/rails/example/channel_example_group.rb,
lib/rspec/rails/example/channel_example_group.rb,
lib/rspec/rails/example/feature_example_group.rb,
lib/rspec/rails/example/mailbox_example_group.rb,
lib/rspec/rails/example/request_example_group.rb,
lib/rspec/rails/example/routing_example_group.rb,
lib/rspec/rails/example/controller_example_group.rb,
lib/rspec/rails/matchers/action_cable/have_streams.rb,
lib/rspec/rails/matchers/action_cable/have_broadcasted_to.rb
+
-
-
+
Overview
@@ -102,7 +100,7 @@ Overview
- Modules: ControllerExampleGroup, FeatureExampleGroup, HelperExampleGroup, JobExampleGroup, MailerExampleGroup, Matchers, ModelExampleGroup, RailsExampleGroup, RequestExampleGroup, RoutingExampleGroup, SystemExampleGroup, Version, ViewAssigns, ViewExampleGroup, ViewRendering, ViewSpecMethods
+ Modules: ChannelExampleGroup, ControllerExampleGroup, FeatureExampleGroup, HelperExampleGroup, JobExampleGroup, MailboxExampleGroup, MailerExampleGroup, Matchers, ModelExampleGroup, RailsExampleGroup, RequestExampleGroup, RoutingExampleGroup, SystemExampleGroup, Version, ViewAssigns, ViewExampleGroup, ViewRendering, ViewSpecMethods
@@ -111,18 +109,19 @@
Overview
- Constant Summary
+
+ Constant Summary
+ collapse
+
+
- - DIRECTORY_MAPPINGS =
+
- Assertions =
-
- This constant is part of a private API.
- You should avoid using this constant if possible, as it may be removed or be changed in the future.
-
-Mappings used by infer_spec_type_from_file_location!
.
+ Constant aliased to either Minitest or TestUnit, depending on what is
+loaded.
@@ -132,24 +131,16 @@ Constant Summary
- {
- :controller => %w[spec controllers],
- :helper => %w[spec helpers],
- :job => %w[spec jobs],
- :mailer => %w[spec mailers],
- :model => %w[spec models],
- :request => %w[spec (requests|integration|api)],
- :routing => %w[spec routing],
- :view => %w[spec views],
- :feature => %w[spec features],
- :system => %w[spec system]
-}
+ Minitest::Assertions
- - Assertions =
+
- DIRECTORY_MAPPINGS =
-
Constant aliased to either Minitest or TestUnit, depending on what is
-loaded.
+
+ This constant is part of a private API.
+ You should avoid using this constant if possible, as it may be removed or be changed in the future.
+
+Mappings used by infer_spec_type_from_file_location!
.
@@ -159,7 +150,20 @@ Constant Summary
- Test::Unit::Assertions
+ {
+ channel: %w[spec channels],
+ controller: %w[spec controllers],
+ helper: %w[spec helpers],
+ job: %w[spec jobs],
+ mailer: %w[spec mailers],
+ model: %w[spec models],
+ request: %w[spec (requests|integration|api)],
+ routing: %w[spec routing],
+ view: %w[spec views],
+ feature: %w[spec features],
+ system: %w[spec system],
+ mailbox: %w[spec mailboxes]
+}
@@ -173,7 +177,7 @@ Constant Summary
Class Method Summary
- (collapse)
+ collapse
@@ -181,7 +185,7 @@
-
- + (Object) add_test_type_configurations(config)
+ .add_test_type_configurations(config) ⇒ Object
@@ -205,7 +209,7 @@
Instance Method Summary
- (collapse)
+ collapse
@@ -213,7 +217,7 @@
-
- - (Object) infer_spec_type_from_file_location!
+ #infer_spec_type_from_file_location! ⇒ Object
@@ -236,7 +240,7 @@
-
- - (Object) render_views(val)
+ #render_views(val) ⇒ Object
@@ -259,7 +263,7 @@
-
- - (Object) render_views=(val)
+ #render_views=(val) ⇒ Object
@@ -282,7 +286,7 @@
-
- - (Object) render_views?
+ #render_views? ⇒ Object
@@ -314,7 +318,7 @@
Class Method Details
- + (Object) add_test_type_configurations(config)
+ .add_test_type_configurations(config) ⇒ Object
@@ -340,8 +344,6 @@
-43
-44
45
46
47
@@ -350,21 +352,23 @@
50
51
52
-53
+53
+54
+55
- # File 'lib/rspec/rails/configuration.rb', line 43
+ # File 'lib/rspec/rails/configuration.rb', line 45
def self.add_test_type_configurations(config)
- config.include RSpec::Rails::ControllerExampleGroup, :type => :controller
- config.include RSpec::Rails::HelperExampleGroup, :type => :helper
- config.include RSpec::Rails::ModelExampleGroup, :type => :model
- config.include RSpec::Rails::RequestExampleGroup, :type => :request
- config.include RSpec::Rails::RoutingExampleGroup, :type => :routing
- config.include RSpec::Rails::ViewExampleGroup, :type => :view
- config.include RSpec::Rails::FeatureExampleGroup, :type => :feature
- config.include RSpec::Rails::Matchers
- config.include RSpec::Rails::SystemExampleGroup, :type => :system
+ config.include RSpec::Rails::ControllerExampleGroup, type: :controller
+ config.include RSpec::Rails::HelperExampleGroup, type: :helper
+ config.include RSpec::Rails::ModelExampleGroup, type: :model
+ config.include RSpec::Rails::RequestExampleGroup, type: :request
+ config.include RSpec::Rails::RoutingExampleGroup, type: :routing
+ config.include RSpec::Rails::ViewExampleGroup, type: :view
+ config.include RSpec::Rails::FeatureExampleGroup, type: :feature
+ config.include RSpec::Rails::Matchers
+ config.include RSpec::Rails::SystemExampleGroup, type: :system
end
@@ -380,7 +384,7 @@ Instance Method Details
- - (Object) infer_spec_type_from_file_location!
+ #infer_spec_type_from_file_location! ⇒ Object
@@ -419,7 +423,7 @@
- - (Object) render_views(val)
+ #render_views(val) ⇒ Object
@@ -455,7 +459,7 @@
- - (Object) render_views=(val)
+ #render_views=(val) ⇒ Object
@@ -492,7 +496,7 @@
- - (Object) render_views?
+ #render_views? ⇒ Object
@@ -529,10 +533,10 @@
-
- Generated on Tue Oct 8 11:39:25 2019 by
+
+ Generated on Thu Jan 2 10:07:34 2020 by
yard
- 0.8.7.6 (ruby-2.6.5).
+ 0.9.22 (ruby-2.7.0).
+
-
+
\ No newline at end of file
diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/ActiveRecordConfiguration.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/ActiveRecordConfiguration.html
index 351613e66..3f93f82a2 100644
--- a/source/documentation/3.9/rspec-rails/RSpec/Rails/ActiveRecordConfiguration.html
+++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/ActiveRecordConfiguration.html
@@ -1,80 +1,75 @@
-
-
+
+
Class: RSpec::Rails::ActiveRecordConfiguration
- — Documentation by YARD 0.8.7.6
+ — Documentation by YARD 0.9.22
-
+
-
+
-
+
-
-
+
-
+
-
-
+
+
+
+
+
+
+
+
-
+
-
-
+
+
-
-
- Class: RSpec::Rails::ActiveRecordConfiguration
+ Class: RSpec::Rails::ActiveRecordConfiguration
-
-
+
- - Inherits:
- -
+
+ - Inherits:
+ -
Object
@@ -85,21 +80,25 @@
show all
-
-
+
+
+
-
-
- - Defined in:
- - lib/rspec/rails/active_record.rb
+
-
-
+
+
+
+ - Defined in:
+ - lib/rspec/rails/active_record.rb
+
+
+
Overview
@@ -123,10 +122,10 @@ Overview
-
- Generated on Tue Oct 8 11:39:26 2019 by
+
+ Generated on Thu Jan 2 10:07:35 2020 by
yard
- 0.8.7.6 (ruby-2.6.5).
+ 0.9.22 (ruby-2.7.0).
+
-
+
\ No newline at end of file
diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/ChannelExampleGroup.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/ChannelExampleGroup.html
new file mode 100644
index 000000000..461c3dc14
--- /dev/null
+++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/ChannelExampleGroup.html
@@ -0,0 +1,490 @@
+
+
+
+
+
+ Module: RSpec::Rails::ChannelExampleGroup
+
+ — Documentation by YARD 0.9.22
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Module: RSpec::Rails::ChannelExampleGroup
+
+
+
+
+
+
+
+
+
+
+ - Extended by:
+ - ActiveSupport::Concern
+
+
+
+
+
+ - Includes:
+ - ActionCable::Channel::TestCase::Behavior, ActionCable::Connection::TestCase::Behavior, RailsExampleGroup
+
+
+
+
+
+
+
+
+ - Defined in:
+ - lib/rspec/rails/example/channel_example_group.rb,
+ lib/rspec/rails/example/channel_example_group.rb
+
+
+
+
+
+Overview
+
+ Container module for channel spec functionality. It is only available if
+ActionCable has been loaded before it.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Instance Method Summary
+ collapse
+
+
+
+
+ -
+
+
+ #have_rejected_connection ⇒ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Checks that the connection attempt has been rejected.
+
+
+
+
+
+ -
+
+
+ #have_stream_for(object) ⇒ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Checks that the channel has been subscribed to a stream for the given model.
+
+
+
+
+
+ -
+
+
+ #have_stream_from(stream) ⇒ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Checks that the channel has been subscribed to the given stream.
+
+
+
+
+
+ -
+
+
+ #have_streams ⇒ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Checks that the subscription is subscribed to at least one stream.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Instance Method Details
+
+
+
+
+
+ #have_rejected_connection ⇒ Object
+
+
+
+
+
+
+
+ Checks that the connection attempt has been rejected.
+
+
+
+
+
+
+
+ Examples:
+
+
+ expect { connect }.to have_rejected_connection
+
+
+
+
+
+
+
+
+
+
+58
+59
+60
+
+
+ # File 'lib/rspec/rails/example/channel_example_group.rb', line 58
+
+def have_rejected_connection
+ raise_error(::ActionCable::Connection::Authorization::UnauthorizedError)
+end
+
+
+
+
+
+
+
+
+ #have_stream_for(object) ⇒ Object
+
+
+
+
+
+
+
+ Checks that the channel has been subscribed to a stream for the given model
+
+
+
+
+
+
+
+ Examples:
+
+
+ expect(subscription).to have_stream_for(user)
+
+
+
+
+
+
+
+
+
+
+86
+87
+88
+89
+
+
+ # File 'lib/rspec/rails/example/channel_example_group.rb', line 86
+
+def have_stream_for(object)
+ check_subscribed!
+ RSpec::Rails::Matchers::ActionCable::HaveStream.new(broadcasting_for(object))
+end
+
+
+
+
+
+
+
+
+ #have_stream_from(stream) ⇒ Object
+
+
+
+
+
+
+
+ Checks that the channel has been subscribed to the given stream
+
+
+
+
+
+
+
+ Examples:
+
+
+ expect(subscription).to have_stream_from("chat_1")
+
+
+
+
+
+
+
+
+
+
+76
+77
+78
+79
+80
+
+
+ # File 'lib/rspec/rails/example/channel_example_group.rb', line 76
+
+def have_stream_from(stream)
+ check_subscribed!
+
+ RSpec::Rails::Matchers::ActionCable::HaveStream.new(stream)
+end
+
+
+
+
+
+
+
+
+ #have_streams ⇒ Object
+
+
+
+
+
+
+
+ Checks that the subscription is subscribed to at least one stream.
+
+
+
+
+
+
+
+ Examples:
+
+
+ expect(subscription).to have_streams
+
+
+
+
+
+
+
+
+
+
+66
+67
+68
+69
+70
+
+
+ # File 'lib/rspec/rails/example/channel_example_group.rb', line 66
+
+def have_streams
+ check_subscribed!
+
+ RSpec::Rails::Matchers::ActionCable::HaveStream.new
+end
+
+
+
+
+
+
+
+
+
+
+ Generated on Thu Jan 2 10:07:35 2020 by
+ yard
+ 0.9.22 (ruby-2.7.0).
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/Configuration.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/Configuration.html
index 6c6964d68..d8990cc58 100644
--- a/source/documentation/3.9/rspec-rails/RSpec/Rails/Configuration.html
+++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/Configuration.html
@@ -1,80 +1,75 @@
-
-
+
+
Class: RSpec::Rails::Configuration
- — Documentation by YARD 0.8.7.6
+ — Documentation by YARD 0.9.22
-
+
-
+
-
+
-
-
+
-
+
-
-
+
+
+
+
+
+
+
+
-
+
-
-
+
+
-
-
- Class: RSpec::Rails::Configuration
+ Class: RSpec::Rails::Configuration
-
-
+
- - Inherits:
- -
+
+ - Inherits:
+ -
Object
@@ -85,21 +80,25 @@
show all
-
-
+
+
+
-
-
- - Defined in:
- - lib/rspec/rails/configuration.rb
+
-
-
+
+
+
+ - Defined in:
+ - lib/rspec/rails/configuration.rb
+
+
+
Overview
@@ -123,10 +122,10 @@ Overview
-
- Generated on Tue Oct 8 11:39:26 2019 by
+
+ Generated on Thu Jan 2 10:07:35 2020 by
yard
- 0.8.7.6 (ruby-2.6.5).
+ 0.9.22 (ruby-2.7.0).
+
-
+
\ No newline at end of file
diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/ControllerExampleGroup.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/ControllerExampleGroup.html
index f785fc3fb..917762c19 100644
--- a/source/documentation/3.9/rspec-rails/RSpec/Rails/ControllerExampleGroup.html
+++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/ControllerExampleGroup.html
@@ -1,100 +1,100 @@
-
-
+
+
Module: RSpec::Rails::ControllerExampleGroup
- — Documentation by YARD 0.8.7.6
+ — Documentation by YARD 0.9.22
-
+
-
+
-
+
-
-
+
-
+
-
-
+
+
+
+
+
+
+
+
-
+
-
-
-
-
+
+
- Module: RSpec::Rails::ControllerExampleGroup
+ Module: RSpec::Rails::ControllerExampleGroup
+
+
-
-
- - Extended by:
- - ActiveSupport::Concern
-
-
+
+ - Extended by:
+ - ActiveSupport::Concern
+
-
- - Includes:
- - ActionController::TestCase::Behavior, AssertionDelegator.new(
+
+
+
+ - Includes:
+ - ActionController::TestCase::Behavior, AssertionDelegator.new(
ActionDispatch::Assertions::RoutingAssertions
), Matchers::RedirectTo, Matchers::RenderTemplate, Matchers::RoutingMatchers, RailsExampleGroup, ViewRendering
-
-
+
+
- - Defined in:
- - lib/rspec/rails/example/controller_example_group.rb
+
+
+
+ - Defined in:
+ - lib/rspec/rails/example/controller_example_group.rb
+
-
-
+
Overview
@@ -117,19 +117,16 @@ Overview
- Constant Summary
-
-
- Instance Attribute Summary (collapse)
+ Instance Attribute Summary collapse
-
- - (Object) controller
+ #controller ⇒ Object
@@ -157,7 +154,7 @@
Instance Attribute Summary (collap
-
- - (Object) routes
+ #routes ⇒ Object
@@ -190,7 +187,7 @@
Instance Attribute Summary (collap
Instance Method Summary
- (collapse)
+ collapse
@@ -198,7 +195,7 @@
-
- - (Object) bypass_rescue
+ #bypass_rescue ⇒ Object
@@ -221,7 +218,7 @@
-
- - (Object) method_missing(method, *args, &block)
+ #method_missing(method, *args, &block) ⇒ Object
@@ -339,7 +336,7 @@
Dynamic Method Handling
- - (Object) method_missing(method, *args, &block)
+ #method_missing(method, *args, &block) ⇒ Object
@@ -395,7 +392,7 @@ Instance Attribute Details
- - (Object) controller (readonly)
+ #controller ⇒ Object (readonly)
@@ -437,7 +434,7 @@
- - (Object) routes
+ #routes ⇒ Object
@@ -484,7 +481,7 @@ Instance Method Details
- - (Object) bypass_rescue
+ #bypass_rescue ⇒ Object
@@ -513,7 +510,7 @@
expect do
bypass_rescue
- get :show, :id => profile.id + 1
+ get :show, id: profile.id + 1
end.to raise_error(/403 Forbidden/)
end
end
@@ -546,10 +543,10 @@
-
- Generated on Tue Oct 8 11:39:26 2019 by
+
+ Generated on Thu Jan 2 10:07:35 2020 by
yard
- 0.8.7.6 (ruby-2.6.5).
+ 0.9.22 (ruby-2.7.0).
+
-
+
\ No newline at end of file
diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/ControllerExampleGroup/ClassMethods.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/ControllerExampleGroup/ClassMethods.html
index 5224bef89..5b0123024 100644
--- a/source/documentation/3.9/rspec-rails/RSpec/Rails/ControllerExampleGroup/ClassMethods.html
+++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/ControllerExampleGroup/ClassMethods.html
@@ -1,90 +1,88 @@
-
-
+
+
Module: RSpec::Rails::ControllerExampleGroup::ClassMethods
- — Documentation by YARD 0.8.7.6
+ — Documentation by YARD 0.9.22
-
+
-
+
-
+
-
-
+
-
+
-
-
+
+
+
+
+
+
+
+
-
+
-
-
+
+
-
-
- Module: RSpec::Rails::ControllerExampleGroup::ClassMethods
+ Module: RSpec::Rails::ControllerExampleGroup::ClassMethods
+
+
-
-
-
+
- - Defined in:
- - lib/rspec/rails/example/controller_example_group.rb
+
+
+
+ - Defined in:
+ - lib/rspec/rails/example/controller_example_group.rb
+
-
-
+
Overview
@@ -106,7 +104,7 @@ Overview
Instance Method Summary
- (collapse)
+ collapse
@@ -114,7 +112,7 @@
-
- - (Object) controller(base_class = nil, &body)
+ #controller(base_class = nil, &body) ⇒ Object
@@ -137,7 +135,7 @@
-
- - (Object) routes
+ #routes ⇒ Object
@@ -169,7 +167,7 @@
Instance Method Details
- - (Object) controller(base_class = nil, &body)
+ #controller(base_class = nil, &body) ⇒ Object
@@ -288,7 +286,7 @@
# File 'lib/rspec/rails/example/controller_example_group.rb', line 61
def controller(base_class = nil, &body)
- if RSpec.configuration.infer_base_class_for_anonymous_controllers?
+ if RSpec.configuration.infer_base_class_for_anonymous_controllers?
base_class ||= controller_class
end
base_class ||= defined?(ApplicationController) ? ApplicationController : ActionController::Base
@@ -323,9 +321,9 @@
self.routes = ActionDispatch::Routing::RouteSet.new.tap do |r|
r.draw do
resources resource_name,
- :as => resource_as,
- :module => resource_module,
- :path => resource_path
+ as: resource_as,
+ module: resource_module,
+ path: resource_path
end
end
end
@@ -343,7 +341,7 @@
- - (Object) routes
+ #routes ⇒ Object
@@ -401,10 +399,10 @@
-
- Generated on Tue Oct 8 11:39:26 2019 by
+
+ Generated on Thu Jan 2 10:07:35 2020 by
yard
- 0.8.7.6 (ruby-2.6.5).
+ 0.9.22 (ruby-2.7.0).
+
-
+
\ No newline at end of file
diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/FeatureExampleGroup.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/FeatureExampleGroup.html
index fbe788e54..e852b4596 100644
--- a/source/documentation/3.9/rspec-rails/RSpec/Rails/FeatureExampleGroup.html
+++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/FeatureExampleGroup.html
@@ -1,98 +1,98 @@
-
-
+
+
Module: RSpec::Rails::FeatureExampleGroup
- — Documentation by YARD 0.8.7.6
+ — Documentation by YARD 0.9.22
-
+
-
+
-
+
-
-
+
-
+
-
-
+
+
+
+
+
+
+
+
-
+
-
-
+
+
-
-
- Module: RSpec::Rails::FeatureExampleGroup
+ Module: RSpec::Rails::FeatureExampleGroup
+
+
-
-
- - Extended by:
- - ActiveSupport::Concern
-
-
+
+ - Extended by:
+ - ActiveSupport::Concern
+
-
- - Includes:
- - RailsExampleGroup
-
-
+
+ - Includes:
+ - RailsExampleGroup
+
- - Defined in:
- - lib/rspec/rails/example/feature_example_group.rb
-
-
+
+
+
+
+
+ - Defined in:
+ - lib/rspec/rails/example/feature_example_group.rb
+
+
+
Overview
@@ -105,8 +105,12 @@ Overview
- Constant Summary
+
+ Constant Summary
+ collapse
+
+
- DEFAULT_HOST =
@@ -136,7 +140,7 @@
Constant Summary
Instance Method Summary
- (collapse)
+ collapse
@@ -144,7 +148,7 @@
-
- - (Object) visit
+ #visit ⇒ Object
@@ -213,7 +217,7 @@
Instance Method Details
- - (Object) visit
+ #visit ⇒ Object
@@ -237,16 +241,16 @@
+25
+26
27
28
29
30
-31
-32
-33
+31
- # File 'lib/rspec/rails/example/feature_example_group.rb', line 27
+ # File 'lib/rspec/rails/example/feature_example_group.rb', line 25
def visit(*)
if defined?(super)
@@ -264,10 +268,10 @@
-
- Generated on Tue Oct 8 11:39:26 2019 by
+
+ Generated on Thu Jan 2 10:07:35 2020 by
yard
- 0.8.7.6 (ruby-2.6.5).
+ 0.9.22 (ruby-2.7.0).
+
-
+
\ No newline at end of file
diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/HelperExampleGroup.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/HelperExampleGroup.html
index 632594f66..06c9dd987 100644
--- a/source/documentation/3.9/rspec-rails/RSpec/Rails/HelperExampleGroup.html
+++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/HelperExampleGroup.html
@@ -1,98 +1,98 @@
-
-
+
+
Module: RSpec::Rails::HelperExampleGroup
- — Documentation by YARD 0.8.7.6
+ — Documentation by YARD 0.9.22
-
+
-
+
-
+
-
-
+
-
+
-
-
+
+
+
+
+
+
+
+
-
+
-
-
+
+
-
-
- Module: RSpec::Rails::HelperExampleGroup
+ Module: RSpec::Rails::HelperExampleGroup
+
+
-
-
- - Extended by:
- - ActiveSupport::Concern
-
-
+
+ - Extended by:
+ - ActiveSupport::Concern
+
+
-
- - Includes:
- - ActionView::TestCase::Behavior, RailsExampleGroup, ViewAssigns
-
-
+
+ - Includes:
+ - ActionView::TestCase::Behavior, RailsExampleGroup, ViewAssigns
+
- - Defined in:
- - lib/rspec/rails/example/helper_example_group.rb
+
+
+
-
-
+
+ - Defined in:
+ - lib/rspec/rails/example/helper_example_group.rb
+
+
+
Overview
@@ -114,7 +114,7 @@ Overview
Instance Method Summary
- (collapse)
+ collapse
@@ -122,7 +122,7 @@
-
- - (Object) helper
+ #helper ⇒ Object
@@ -203,7 +203,7 @@
Instance Method Details
- - (Object) helper
+ #helper ⇒ Object
@@ -226,15 +226,15 @@
-29
-30
-31
-32
-33
-34
+22
+23
+24
+25
+26
+27
- # File 'lib/rspec/rails/example/helper_example_group.rb', line 29
+ # File 'lib/rspec/rails/example/helper_example_group.rb', line 22
def helper
_view.tap do |v|
@@ -251,10 +251,10 @@
-
- Generated on Tue Oct 8 11:39:26 2019 by
+
+ Generated on Thu Jan 2 10:07:34 2020 by
yard
- 0.8.7.6 (ruby-2.6.5).
+ 0.9.22 (ruby-2.7.0).
+
-
+
\ No newline at end of file
diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/JobExampleGroup.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/JobExampleGroup.html
index 95af7a8ef..de650f3a2 100644
--- a/source/documentation/3.9/rspec-rails/RSpec/Rails/JobExampleGroup.html
+++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/JobExampleGroup.html
@@ -1,100 +1,100 @@
-
-
+
+
Module: RSpec::Rails::JobExampleGroup
- — Documentation by YARD 0.8.7.6
+ — Documentation by YARD 0.9.22
-
+
-
+
-
+
-
-
+
-
+
-
-
+
+
+
+
+
+
+
+
-
+
-
-
+
+
-
-
- Module: RSpec::Rails::JobExampleGroup
+ Module: RSpec::Rails::JobExampleGroup
+
+
-
-
- - Extended by:
- - ActiveSupport::Concern
-
-
+
+ - Extended by:
+ - ActiveSupport::Concern
+
+
-
- - Includes:
- - RailsExampleGroup
-
-
+
+ - Includes:
+ - RailsExampleGroup
+
- - Defined in:
- - lib/rspec/rails/example/job_example_group.rb,
+
+
+
+
+
+ - Defined in:
+ - lib/rspec/rails/example/job_example_group.rb,
lib/rspec/rails/example/job_example_group.rb
+
-
-
+
Overview
@@ -154,10 +154,10 @@ Overview
-
- Generated on Tue Oct 8 11:39:26 2019 by
+
+ Generated on Thu Jan 2 10:07:34 2020 by
yard
- 0.8.7.6 (ruby-2.6.5).
+ 0.9.22 (ruby-2.7.0).
+
-
+
\ No newline at end of file
diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/MailboxExampleGroup.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/MailboxExampleGroup.html
new file mode 100644
index 000000000..1fb191be7
--- /dev/null
+++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/MailboxExampleGroup.html
@@ -0,0 +1,467 @@
+
+
+
+
+
+ Module: RSpec::Rails::MailboxExampleGroup
+
+ — Documentation by YARD 0.9.22
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Module: RSpec::Rails::MailboxExampleGroup
+
+
+
+
+
+
+
+
+
+
+ - Extended by:
+ - ActionMailbox::TestHelper, ActiveSupport::Concern
+
+
+
+
+
+
+
+
+
+
+ - Defined in:
+ - lib/rspec/rails/example/mailbox_example_group.rb
+
+
+
+
+Overview
+
+ Container module for mailbox spec functionality.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Instance Method Summary
+ collapse
+
+
+
+
+ -
+
+
+ #have_been_delivered ⇒ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Passes if the inbound email was delivered.
+
+
+
+
+
+ -
+
+
+ #have_bounced ⇒ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Passes if the inbound email bounced during processing.
+
+
+
+
+
+ -
+
+
+ #have_failed ⇒ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Passes if the inbound email failed to process.
+
+
+
+
+
+ -
+
+
+ #process(message) ⇒ ActionMaibox::InboundMessage
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Process an inbound email message directly, bypassing routing.
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Instance Method Details
+
+
+
+
+
+ #have_been_delivered ⇒ Object
+
+
+
+
+
+
+
+ Passes if the inbound email was delivered
+
+
+
+
+
+
+
+ Examples:
+
+
+ inbound_email = process(args)
+expect(inbound_email).to have_been_delivered
+
+
+
+
+
+
+
+
+
+
+44
+45
+46
+
+
+ # File 'lib/rspec/rails/example/mailbox_example_group.rb', line 44
+
+def have_been_delivered
+ satisfy('have been delivered', &:delivered?)
+end
+
+
+
+
+
+
+
+
+ #have_bounced ⇒ Object
+
+
+
+
+
+
+
+ Passes if the inbound email bounced during processing
+
+
+
+
+
+
+
+ Examples:
+
+
+ inbound_email = process(args)
+expect(inbound_email).to have_bounced
+
+
+
+
+
+
+
+
+
+
+54
+55
+56
+
+
+ # File 'lib/rspec/rails/example/mailbox_example_group.rb', line 54
+
+def have_bounced
+ satisfy('have bounced', &:bounced?)
+end
+
+
+
+
+
+
+
+
+ #have_failed ⇒ Object
+
+
+
+
+
+
+
+ Passes if the inbound email failed to process
+
+
+
+
+
+
+
+ Examples:
+
+
+ inbound_email = process(args)
+expect(inbound_email).to have_failed
+
+
+
+
+
+
+
+
+
+
+64
+65
+66
+
+
+ # File 'lib/rspec/rails/example/mailbox_example_group.rb', line 64
+
+def have_failed
+ satisfy('have failed', &:failed?)
+end
+
+
+
+
+
+
+
+
+ #process(message) ⇒ ActionMaibox::InboundMessage
+
+
+
+
+
+
+
+ Process an inbound email message directly, bypassing routing.
+
+
+
+
+
+ Parameters:
+
+
+ -
+
+ message
+
+
+ (Hash, Mail::Message)
+
+
+
+ —
+
a mail message or hash of
+attributes used to build one
+
+
+
+
+
+
+Returns:
+
+
+ -
+
+
+ (ActionMaibox::InboundMessage)
+
+
+
+
+
+
+
+
+
+
+
+
+
+73
+74
+75
+76
+77
+
+
+ # File 'lib/rspec/rails/example/mailbox_example_group.rb', line 73
+
+def process(message)
+ MailboxExampleGroup.create_inbound_email(message).tap do |mail|
+ self.class.mailbox_class.receive(mail)
+ end
+end
+
+
+
+
+
+
+
+
+
+
+ Generated on Thu Jan 2 10:07:35 2020 by
+ yard
+ 0.9.22 (ruby-2.7.0).
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/MailerExampleGroup.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/MailerExampleGroup.html
index 2dd48b554..06d3c7d27 100644
--- a/source/documentation/3.9/rspec-rails/RSpec/Rails/MailerExampleGroup.html
+++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/MailerExampleGroup.html
@@ -1,105 +1,104 @@
-
-
+
+
Module: RSpec::Rails::MailerExampleGroup
- — Documentation by YARD 0.8.7.6
+ — Documentation by YARD 0.9.22
-
+
-
+
-
+
-
-
+
-
+
-
-
+
+
+
+
+
+
+
+
-
+
-
-
+
+
-
-
- Module: RSpec::Rails::MailerExampleGroup
+ Module: RSpec::Rails::MailerExampleGroup
+
+
-
-
- - Extended by:
- - ActiveSupport::Concern
-
-
+
+ - Extended by:
+ - ActiveSupport::Concern
+
+
-
- - Includes:
- - ActionMailer::TestCase::Behavior, RailsExampleGroup
-
-
+
+ - Includes:
+ - ActionMailer::TestCase::Behavior, RailsExampleGroup
+
- - Defined in:
- - lib/rspec/rails/example/mailer_example_group.rb,
+
+
+
+
+
+ - Defined in:
+ - lib/rspec/rails/example/mailer_example_group.rb,
lib/rspec/rails/example/mailer_example_group.rb
+
-
-
+
Overview
- Container module for mailer spec functionality. It is only available if
-ActionMailer has been loaded before it.
+ Container module for mailer spec functionality.
@@ -166,10 +165,10 @@ Overview
-
- Generated on Tue Oct 8 11:39:26 2019 by
+
+ Generated on Thu Jan 2 10:07:34 2020 by
yard
- 0.8.7.6 (ruby-2.6.5).
+ 0.9.22 (ruby-2.7.0).
+
-
+
\ No newline at end of file
diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/MailerExampleGroup/ClassMethods.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/MailerExampleGroup/ClassMethods.html
index 3075d6328..50a195db9 100644
--- a/source/documentation/3.9/rspec-rails/RSpec/Rails/MailerExampleGroup/ClassMethods.html
+++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/MailerExampleGroup/ClassMethods.html
@@ -1,90 +1,88 @@
-
-
+
+
Module: RSpec::Rails::MailerExampleGroup::ClassMethods
- — Documentation by YARD 0.8.7.6
+ — Documentation by YARD 0.9.22
-
+
-
+
-
+
-
-
+
-
+
-
-
+
+
+
+
+
+
+
+
-
+
-
-
+
+
-
-
- Module: RSpec::Rails::MailerExampleGroup::ClassMethods
+ Module: RSpec::Rails::MailerExampleGroup::ClassMethods
+
+
-
-
-
+
- - Defined in:
- - lib/rspec/rails/example/mailer_example_group.rb
+
+
+
+ - Defined in:
+ - lib/rspec/rails/example/mailer_example_group.rb
+
-
-
+
Overview
@@ -106,7 +104,7 @@ Overview
Instance Method Summary
- (collapse)
+ collapse
@@ -114,7 +112,7 @@
-
- - (Object) mailer_class
+ #mailer_class ⇒ Object
@@ -146,7 +144,7 @@
Instance Method Details
- - (Object) mailer_class
+ #mailer_class ⇒ Object
@@ -187,10 +185,10 @@
-
- Generated on Tue Oct 8 11:39:26 2019 by
+
+ Generated on Thu Jan 2 10:07:34 2020 by
yard
- 0.8.7.6 (ruby-2.6.5).
+ 0.9.22 (ruby-2.7.0).
+
-
+
\ No newline at end of file
diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers.html
index 3bb05f13e..f224aa467 100644
--- a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers.html
+++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers.html
@@ -1,92 +1,90 @@
-
-
+
+
Module: RSpec::Rails::Matchers
- — Documentation by YARD 0.8.7.6
+ — Documentation by YARD 0.9.22
-
+
-
+
-
+
-
-
+
-
+
-
-
+
+
+
+
+
+
+
+
-
+
-
-
-
-
+
+
- Module: RSpec::Rails::Matchers
+ Module: RSpec::Rails::Matchers
+
+
-
-
-
+
+
+
- - Defined in:
- - lib/rspec/rails/matchers.rb,
- lib/rspec/rails/matchers/be_valid.rb,
lib/rspec/rails/matchers/be_a_new.rb,
lib/rspec/rails/matchers/active_job.rb,
lib/rspec/rails/matchers/redirect_to.rb,
lib/rspec/rails/matchers/base_matcher.rb,
lib/rspec/rails/matchers/have_rendered.rb,
lib/rspec/rails/matchers/be_new_record.rb,
lib/rspec/rails/matchers/routing_matchers.rb,
lib/rspec/rails/matchers/have_http_status.rb,
lib/rspec/rails/matchers/have_enqueued_mail.rb
+
+ - Defined in:
+ - lib/rspec/rails/matchers.rb,
+ lib/rspec/rails/matchers/be_a_new.rb,
lib/rspec/rails/matchers/be_valid.rb,
lib/rspec/rails/matchers/active_job.rb,
lib/rspec/rails/matchers/redirect_to.rb,
lib/rspec/rails/matchers/action_cable.rb,
lib/rspec/rails/matchers/base_matcher.rb,
lib/rspec/rails/matchers/be_new_record.rb,
lib/rspec/rails/matchers/have_rendered.rb,
lib/rspec/rails/matchers/action_mailbox.rb,
lib/rspec/rails/matchers/have_http_status.rb,
lib/rspec/rails/matchers/routing_matchers.rb,
lib/rspec/rails/matchers/have_enqueued_mail.rb,
lib/rspec/rails/matchers/action_cable/have_streams.rb,
lib/rspec/rails/matchers/action_cable/have_broadcasted_to.rb
+
-
-
+
Overview
@@ -102,7 +100,7 @@ Overview
- Modules: ActiveJob, HaveHttpStatus, RedirectTo, RenderTemplate, RoutingMatchers
+ Modules: ActionCable, ActionMailbox, ActiveJob, HaveHttpStatus, RedirectTo, RenderTemplate, RoutingMatchers
@@ -120,7 +118,7 @@
Overview
Instance Method Summary
- (collapse)
+ collapse
@@ -128,7 +126,7 @@
-
- - (Object) be_a_new(model_class)
+ #be_a_new(model_class) ⇒ Object
@@ -151,7 +149,7 @@
-
- - (Object) be_new_record
+ #be_new_record ⇒ Object
@@ -174,7 +172,7 @@
-
- - (Object) be_valid(*args)
+ #be_valid(*args) ⇒ Object
@@ -197,7 +195,7 @@
-
- - (Object) have_been_enqueued
+ #have_been_enqueued ⇒ Object
@@ -220,7 +218,55 @@
-
- - (Object) have_enqueued_job(job = nil)
+ #have_been_performed ⇒ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Passes if a job has been performed.
+
+
+
+
+
+ -
+
+
+ #have_broadcasted_to(target = nil) ⇒ Object
+
+
+
+ (also: #broadcast_to)
+
+
+
+
+
+
+
+
+
+
+
+
Passes if a message has been sent to a stream/object inside a block.
+
+
+
+
+
+ -
+
+
+ #have_enqueued_job(job = nil) ⇒ Object
@@ -245,7 +291,7 @@
-
- - (Object) have_enqueued_mail(mailer_class, mail_method_name)
+ #have_enqueued_mail(mailer_class = nil, mail_method_name = nil) ⇒ Object
@@ -270,7 +316,7 @@
-
- - (Object) have_http_status(target)
+ #have_http_status(target) ⇒ Object
@@ -287,6 +333,54 @@
Passes if response
has a matching HTTP status code.
+
+
+
+ -
+
+
+ #have_performed_job(job = nil) ⇒ Object
+
+
+
+ (also: #perform_job)
+
+
+
+
+
+
+
+
+
+
+
+
Passes if a job has been performed inside block.
+
+
+
+
+
+ -
+
+
+ #receive_inbound_email(message) ⇒ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Passes if the given inbound email would be routed to the subject inbox.
+
+
@@ -302,7 +396,7 @@ Instance Method Details
- - (Object) be_a_new(model_class)
+ #be_a_new(model_class) ⇒ Object
@@ -349,7 +443,7 @@
# File 'lib/rspec/rails/matchers/be_a_new.rb', line 78
def be_a_new(model_class)
- BeANew.new(model_class)
+ BeANew.new(model_class)
end
@@ -359,7 +453,7 @@
- - (Object) be_new_record
+ #be_new_record ⇒ Object
@@ -398,7 +492,7 @@
# File 'lib/rspec/rails/matchers/be_new_record.rb', line 25
def be_new_record
- BeANewRecord.new
+ BeANewRecord.new
end
@@ -408,7 +502,7 @@
- - (Object) be_valid(*args)
+ #be_valid(*args) ⇒ Object
@@ -459,7 +553,7 @@
- - (Object) have_been_enqueued
+ #have_been_enqueued ⇒ Object
@@ -478,7 +572,7 @@
Examples:
- before { ActiveJob::Base.queue_adapter.enqueued_jobs.clear }
+ before { ActiveJob::Base.queue_adapter.enqueued_jobs.clear }
HeavyLiftingJob.perform_later
expect(HeavyLiftingJob).to have_been_enqueued
@@ -513,17 +607,175 @@
-303
-304
-305
-306
+351
+352
+353
+354
- # File 'lib/rspec/rails/matchers/active_job.rb', line 303
+ # File 'lib/rspec/rails/matchers/active_job.rb', line 351
def have_been_enqueued
check_active_job_adapter
- ActiveJob::HaveBeenEnqueued.new
+ ActiveJob::HaveBeenEnqueued.new
+end
+
+
+
+
+
+
+
+
+ #have_been_performed ⇒ Object
+
+
+
+
+
+
+
+ Passes if a job has been performed. May chain at_least, at_most or exactly to specify a number of times.
+
+
+
+
+
+
+
+ Examples:
+
+
+ before do
+ ActiveJob::Base.queue_adapter.performed_jobs.clear
+ ActiveJob::Base.queue_adapter.perform_enqueued_jobs = true
+ ActiveJob::Base.queue_adapter.perform_enqueued_at_jobs = true
+end
+
+HeavyLiftingJob.perform_later
+expect(HeavyLiftingJob).to have_been_performed
+
+HelloJob.perform_later
+HeavyLiftingJob.perform_later
+expect(HeavyLiftingJob).to have_been_performed.exactly(:once)
+
+3.times { HelloJob.perform_later }
+expect(HelloJob).to have_been_performed.at_least(2).times
+
+HelloJob.perform_later
+HeavyLiftingJob.perform_later
+expect(HelloJob).to have_been_performed
+expect(HeavyLiftingJob).to have_been_performed
+
+HelloJob.set(wait_until: Date.tomorrow.noon, queue: "low").perform_later(42)
+expect(HelloJob).to have_been_performed.with(42).on_queue("low").at(Date.tomorrow.noon)
+
+
+
+
+
+
+
+
+
+
+424
+425
+426
+427
+
+
+ # File 'lib/rspec/rails/matchers/active_job.rb', line 424
+
+def have_been_performed
+ check_active_job_adapter
+ ActiveJob::HaveBeenPerformed.new
+end
+
+
+
+
+
+
+
+
+ #have_broadcasted_to(target = nil) ⇒ Object
+
+
+
+ Also known as:
+ broadcast_to
+
+
+
+
+
+
+ Passes if a message has been sent to a stream/object inside a block.
+May chain at_least
, at_most
or exactly
to specify a number of times.
+To specify channel from which message has been broadcasted to object use from_channel
.
+
+
+
+
+
+
+
+ Examples:
+
+
+ expect {
+ ActionCable.server.broadcast "messages", text: 'Hi!'
+}.to have_broadcasted_to("messages")
+
+expect {
+ SomeChannel.broadcast_to(user)
+}.to have_broadcasted_to(user).from_channel(SomeChannel)
+
+# Using alias
+expect {
+ ActionCable.server.broadcast "messages", text: 'Hi!'
+}.to broadcast_to("messages")
+
+expect {
+ ActionCable.server.broadcast "messages", text: 'Hi!'
+ ActionCable.server.broadcast "all", text: 'Hi!'
+}.to have_broadcasted_to("messages").exactly(:once)
+
+expect {
+ 3.times { ActionCable.server.broadcast "messages", text: 'Hi!' }
+}.to have_broadcasted_to("messages").at_least(2).times
+
+expect {
+ ActionCable.server.broadcast "messages", text: 'Hi!'
+}.to have_broadcasted_to("messages").at_most(:twice)
+
+expect {
+ ActionCable.server.broadcast "messages", text: 'Hi!'
+}.to have_broadcasted_to("messages").with(text: 'Hi!')
+
+
+
+
+
+
+
+
+
+
+48
+49
+50
+51
+52
+
+
+ # File 'lib/rspec/rails/matchers/action_cable.rb', line 48
+
+def have_broadcasted_to(target = nil)
+ check_action_cable_adapter
+
+ ActionCable::HaveBroadcastedTo.new(target, channel: described_class)
end
@@ -533,7 +785,7 @@
- - (Object) have_enqueued_job(job = nil)
+ #have_enqueued_job(job = nil) ⇒ Object
@@ -607,17 +859,17 @@
-268
-269
-270
-271
+316
+317
+318
+319
- # File 'lib/rspec/rails/matchers/active_job.rb', line 268
+ # File 'lib/rspec/rails/matchers/active_job.rb', line 316
def have_enqueued_job(job = nil)
check_active_job_adapter
- ActiveJob::HaveEnqueuedJob.new(job)
+ ActiveJob::HaveEnqueuedJob.new(job)
end
@@ -627,7 +879,7 @@
- - (Object) have_enqueued_mail(mailer_class, mail_method_name)
+ #have_enqueued_mail(mailer_class = nil, mail_method_name = nil) ⇒ Object
@@ -656,6 +908,14 @@
expect {
MyMailer.welcome(user).deliver_later
+}.to have_enqueued_mail
+
+expect {
+ MyMailer.welcome(user).deliver_later
+}.to have_enqueued_mail(MyMailer)
+
+expect {
+ MyMailer.welcome(user).deliver_later
}.to have_enqueued_mail(MyMailer, :welcome)
# Using alias
@@ -693,14 +953,14 @@
-166
-167
-168
+187
+188
+189
- # File 'lib/rspec/rails/matchers/have_enqueued_mail.rb', line 166
+ # File 'lib/rspec/rails/matchers/have_enqueued_mail.rb', line 187
-def have_enqueued_mail(mailer_class, mail_method_name)
+def have_enqueued_mail(mailer_class = nil, mail_method_name = nil)
HaveEnqueuedMail.new(mailer_class, mail_method_name)
end
@@ -711,7 +971,7 @@
- - (Object) have_http_status(target)
+ #have_http_status(target) ⇒ Object
@@ -792,31 +1052,177 @@
-375
-376
-377
-378
+378
+379
+380
+381
+382
- # File 'lib/rspec/rails/matchers/have_http_status.rb', line 375
+ # File 'lib/rspec/rails/matchers/have_http_status.rb', line 378
def have_http_status(target)
raise ArgumentError, "Invalid HTTP status: nil" unless target
- HaveHttpStatus.matcher_for_status(target)
+
+ HaveHttpStatus.matcher_for_status(target)
end
+
+
+
+ #have_performed_job(job = nil) ⇒ Object
+
+
+
+ Also known as:
+ perform_job
+
+
+
+
+
+
+ Passes if a job has been performed inside block. May chain at_least, at_most or exactly to specify a number of times.
+
+
+
+
+
+
+ Examples:
+
+
+ expect {
+ perform_jobs { HeavyLiftingJob.perform_later }
+}.to have_performed_job
+
+expect {
+ perform_jobs {
+ HelloJob.perform_later
+ HeavyLiftingJob.perform_later
+ }
+}.to have_performed_job(HelloJob).exactly(:once)
+
+expect {
+ perform_jobs { 3.times { HelloJob.perform_later } }
+}.to have_performed_job(HelloJob).at_least(2).times
+
+expect {
+ perform_jobs { HelloJob.perform_later }
+}.to have_performed_job(HelloJob).at_most(:twice)
+
+expect {
+ perform_jobs {
+ HelloJob.perform_later
+ HeavyLiftingJob.perform_later
+ }
+}.to have_performed_job(HelloJob).and have_performed_job(HeavyLiftingJob)
+
+expect {
+ perform_jobs {
+ HelloJob.set(wait_until: Date.tomorrow.noon, queue: "low").perform_later(42)
+ }
+}.to have_performed_job.with(42).on_queue("low").at(Date.tomorrow.noon)
+
+
+
+
+
+
+
+
+
+
+391
+392
+393
+394
+
+
+ # File 'lib/rspec/rails/matchers/active_job.rb', line 391
+
+def have_performed_job(job = nil)
+ check_active_job_adapter
+ ActiveJob::HavePerformedJob.new(job)
+end
+
+
+
+
+
+
+
+
+ #receive_inbound_email(message) ⇒ Object
+
+
+
+
+
+
+
+ Passes if the given inbound email would be routed to the subject inbox.
+
+
+
+
+ Parameters:
+
+
+ -
+
+ message
+
+
+ (Hash, Mail::Message)
+
+
+
+ —
+
a mail message or hash of
+attributes used to build one
+
+
+
+
-
- Generated on Tue Oct 8 11:39:25 2019 by
+
+
+
+
+
+
+
+59
+60
+61
+
+
+ # File 'lib/rspec/rails/matchers/action_mailbox.rb', line 59
+
+def receive_inbound_email(message)
+ ActionMailbox::ReceiveInboundEmail.new(message)
+end
+
+
+
+
+
+
+
+
+
+
+ Generated on Thu Jan 2 10:07:34 2020 by
yard
- 0.8.7.6 (ruby-2.6.5).
+ 0.9.22 (ruby-2.7.0).
+
-
+
\ No newline at end of file
diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/ActionCable.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/ActionCable.html
new file mode 100644
index 000000000..be289dae9
--- /dev/null
+++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/ActionCable.html
@@ -0,0 +1,143 @@
+
+
+
+
+
+ Module: RSpec::Rails::Matchers::ActionCable
+
+ — Documentation by YARD 0.9.22
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Module: RSpec::Rails::Matchers::ActionCable
+
+
+ Private
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Defined in:
+ - lib/rspec/rails/matchers/action_cable.rb,
+ lib/rspec/rails/matchers/action_cable/have_streams.rb,
lib/rspec/rails/matchers/action_cable/have_broadcasted_to.rb
+
+
+
+
+
+Overview
+
+
+ This module is part of a private API.
+ You should avoid using this module if possible, as it may be removed or be changed in the future.
+
+Namespace for various implementations of ActionCable features
+
+
+
+
+
+
+
+Defined Under Namespace
+
+
+
+
+
+ Classes: HaveStream
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Generated on Thu Jan 2 10:07:34 2020 by
+ yard
+ 0.9.22 (ruby-2.7.0).
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/ActionCable/HaveStream.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/ActionCable/HaveStream.html
new file mode 100644
index 000000000..060d40b77
--- /dev/null
+++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/ActionCable/HaveStream.html
@@ -0,0 +1,497 @@
+
+
+
+
+
+ Class: RSpec::Rails::Matchers::ActionCable::HaveStream
+
+ — Documentation by YARD 0.9.22
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Class: RSpec::Rails::Matchers::ActionCable::HaveStream
+
+
+ Private
+
+
+
+
+ - Inherits:
+ -
+ Matchers::BuiltIn::BaseMatcher
+
+
+ - Object
+
+ - Matchers::BuiltIn::BaseMatcher
+
+ - RSpec::Rails::Matchers::ActionCable::HaveStream
+
+
+ show all
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Defined in:
+ - lib/rspec/rails/matchers/action_cable/have_streams.rb
+
+
+
+
+Overview
+
+
+ This class is part of a private API.
+ You should avoid using this class if possible, as it may be removed or be changed in the future.
+
+Provides the implementation for have_stream
, have_stream_for
, and have_stream_from
.
+Not intended to be instantiated directly.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Instance Method Summary
+ collapse
+
+
+
+
+ -
+
+
+ #does_not_match?(subscription) ⇒ Boolean
+
+
+
+
+
+
+
+
+
+
+ private
+
+
+
+
+
+
+
+ -
+
+
+ #failure_message ⇒ String
+
+
+
+
+
+
+
+
+
+
+ private
+
+
+
+
+
+
+
+ -
+
+
+ #failure_message_when_negated ⇒ String
+
+
+
+
+
+
+
+
+
+
+ private
+
+
+
+
+
+
+
+ -
+
+
+ #matches?(subscription) ⇒ Boolean
+
+
+
+
+
+
+
+
+
+
+ private
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Instance Method Details
+
+
+
+
+
+ #does_not_match?(subscription) ⇒ Boolean
+
+
+
+
+
+
+
+
+ This method is part of a private API.
+ You should avoid using this method if possible, as it may be removed or be changed in the future.
+
+
+
+
+
+
+
+Returns:
+
+
+ -
+
+
+ (Boolean)
+
+
+
+
+
+
+
+
+
+
+
+
+
+31
+32
+33
+
+
+ # File 'lib/rspec/rails/matchers/action_cable/have_streams.rb', line 31
+
+def does_not_match?(subscription)
+ !match(subscription)
+end
+
+
+
+
+
+
+
+
+ #failure_message ⇒ String
+
+
+
+
+
+
+
+
+ This method is part of a private API.
+ You should avoid using this method if possible, as it may be removed or be changed in the future.
+
+
+
+
+
+
+
+Returns:
+
+
+ -
+
+
+ (String)
+
+
+
+
+
+
+
+
+
+
+
+
+
+11
+12
+13
+
+
+ # File 'lib/rspec/rails/matchers/action_cable/have_streams.rb', line 11
+
+def failure_message
+ "expected to have #{base_message}"
+end
+
+
+
+
+
+
+
+
+ #failure_message_when_negated ⇒ String
+
+
+
+
+
+
+
+
+ This method is part of a private API.
+ You should avoid using this method if possible, as it may be removed or be changed in the future.
+
+
+
+
+
+
+
+Returns:
+
+
+ -
+
+
+ (String)
+
+
+
+
+
+
+
+
+
+
+
+
+
+17
+18
+19
+
+
+ # File 'lib/rspec/rails/matchers/action_cable/have_streams.rb', line 17
+
+def failure_message_when_negated
+ "expected not to have #{base_message}"
+end
+
+
+
+
+
+
+
+
+ #matches?(subscription) ⇒ Boolean
+
+
+
+
+
+
+
+
+ This method is part of a private API.
+ You should avoid using this method if possible, as it may be removed or be changed in the future.
+
+
+
+
+
+
+
+Returns:
+
+
+ -
+
+
+ (Boolean)
+
+
+
+
+
+
+Raises:
+
+
+ -
+
+
+ (ArgumentError)
+
+
+
+
+
+
+
+
+
+
+
+
+
+23
+24
+25
+26
+27
+
+
+ # File 'lib/rspec/rails/matchers/action_cable/have_streams.rb', line 23
+
+def matches?(subscription)
+ raise(ArgumentError, "have_streams is used for negated expectations only") if no_expected?
+
+ match(subscription)
+end
+
+
+
+
+
+
+
+
+
+
+ Generated on Thu Jan 2 10:07:35 2020 by
+ yard
+ 0.9.22 (ruby-2.7.0).
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/ActionMailbox.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/ActionMailbox.html
new file mode 100644
index 000000000..05ac9cdb7
--- /dev/null
+++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/ActionMailbox.html
@@ -0,0 +1,131 @@
+
+
+
+
+
+ Module: RSpec::Rails::Matchers::ActionMailbox
+
+ — Documentation by YARD 0.9.22
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Module: RSpec::Rails::Matchers::ActionMailbox
+
+
+ Private
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Defined in:
+ - lib/rspec/rails/matchers/action_mailbox.rb
+
+
+
+
+Overview
+
+
+ This module is part of a private API.
+ You should avoid using this module if possible, as it may be removed or be changed in the future.
+
+Namespace for various implementations of ActionMailbox features
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Generated on Thu Jan 2 10:07:34 2020 by
+ yard
+ 0.9.22 (ruby-2.7.0).
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/ActiveJob.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/ActiveJob.html
index 69f769702..c37fea36f 100644
--- a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/ActiveJob.html
+++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/ActiveJob.html
@@ -1,90 +1,88 @@
-
-
+
+
Module: RSpec::Rails::Matchers::ActiveJob
- — Documentation by YARD 0.8.7.6
+ — Documentation by YARD 0.9.22
-
+
-
+
-
+
-
-
+
-
+
-
-
+
+
+
+
+
+
+
+
-
+
-
-
-
-
+
+
- Module: RSpec::Rails::Matchers::ActiveJob
+ Module: RSpec::Rails::Matchers::ActiveJob
Private
+
+
-
-
-
+
+
+
- - Defined in:
- - lib/rspec/rails/matchers/active_job.rb
+
+ - Defined in:
+ - lib/rspec/rails/matchers/active_job.rb
+
-
-
+
Overview
@@ -111,10 +109,10 @@ Overview
-
- Generated on Tue Oct 8 11:39:25 2019 by
+
+ Generated on Thu Jan 2 10:07:34 2020 by
yard
- 0.8.7.6 (ruby-2.6.5).
+ 0.9.22 (ruby-2.7.0).
+
-
+
\ No newline at end of file
diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/BaseMatcher.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/BaseMatcher.html
index f198b3dc7..6aa034faf 100644
--- a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/BaseMatcher.html
+++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/BaseMatcher.html
@@ -1,80 +1,75 @@
-
-
+
+
Class: RSpec::Rails::Matchers::BaseMatcher
- — Documentation by YARD 0.8.7.6
+ — Documentation by YARD 0.9.22
-
+
-
+
-
+
-
-
+
-
+
-
-
+
+
+
+
+
+
+
+
-
+
-
-
+
+
-
-
- Class: RSpec::Rails::Matchers::BaseMatcher
+ Class: RSpec::Rails::Matchers::BaseMatcher
-
-
+
- - Inherits:
- -
+
+ - Inherits:
+ -
Object
@@ -85,25 +80,30 @@
show all
-
-
+
+
+
-
-
- - Includes:
- - Matchers::Composable, DefaultFailureMessages
-
-
+
+ - Includes:
+ - Matchers::Composable, DefaultFailureMessages
+
- - Defined in:
- - lib/rspec/rails/matchers/base_matcher.rb
-
-
+
+
+
+
+
+ - Defined in:
+ - lib/rspec/rails/matchers/base_matcher.rb
+
+
+
Overview
@@ -130,8 +130,12 @@ Defined Under Namespace
- Constant Summary
+
+ Constant Summary
+ collapse
+
+
- UNDEFINED =
@@ -166,7 +170,7 @@
Constant Summary
Instance Method Summary
- (collapse)
+ collapse
@@ -174,7 +178,7 @@
-
- - (String) description
+ #description ⇒ String
@@ -197,7 +201,7 @@
-
- - (Boolean) diffable?
+ #diffable? ⇒ Boolean
@@ -220,7 +224,7 @@
-
- - (Boolean) expects_call_stack_jump?
+ #expects_call_stack_jump? ⇒ Boolean
@@ -242,7 +246,7 @@
-
- - (BaseMatcher) initialize(expected = UNDEFINED)
+ #initialize(expected = UNDEFINED) ⇒ BaseMatcher
@@ -267,7 +271,7 @@
-
- - (Object) match_unless_raises(*exceptions)
+ #match_unless_raises(*exceptions) ⇒ Object
@@ -290,7 +294,7 @@
-
- - (Boolean) matches?(actual)
+ #matches?(actual) ⇒ Boolean
@@ -313,7 +317,7 @@
-
- - (Boolean) supports_block_expectations?
+ #supports_block_expectations? ⇒ Boolean
@@ -360,7 +364,7 @@
Constructor Details
- - (BaseMatcher) initialize(expected = UNDEFINED)
+ #initialize(expected = UNDEFINED) ⇒ BaseMatcher
@@ -368,7 +372,7 @@
- Returns a new instance of BaseMatcher
+ Returns a new instance of BaseMatcher.
@@ -389,8 +393,8 @@
# File 'lib/rspec/rails/matchers/base_matcher.rb', line 19
-def initialize(expected = UNDEFINED)
- @expected = expected unless UNDEFINED.equal?(expected)
+def initialize(expected = UNDEFINED)
+ @expected = expected unless UNDEFINED.equal?(expected)
end
@@ -407,7 +411,7 @@ Instance Method Details
- - (String) description
+ #description ⇒ String
@@ -456,8 +460,8 @@
# File 'lib/rspec/rails/matchers/base_matcher.rb', line 51
def description
- desc = RSpec::Matchers::EnglishPhrasing.split_words(self.class.matcher_name)
- desc << RSpec::Matchers::EnglishPhrasing.list(@expected) if defined?(@expected)
+ desc = RSpec::Matchers::EnglishPhrasing.split_words(self.class.matcher_name)
+ desc << RSpec::Matchers::EnglishPhrasing.list(@expected) if defined?(@expected)
desc
end
@@ -468,7 +472,7 @@
- - (Boolean) diffable?
+ #diffable? ⇒ Boolean
@@ -526,7 +530,7 @@
- - (Boolean) expects_call_stack_jump?
+ #expects_call_stack_jump? ⇒ Boolean
@@ -582,7 +586,7 @@
- - (Object) match_unless_raises(*exceptions)
+ #match_unless_raises(*exceptions) ⇒ Object
@@ -642,7 +646,7 @@
- - (Boolean) matches?(actual)
+ #matches?(actual) ⇒ Boolean
@@ -703,7 +707,7 @@
- - (Boolean) supports_block_expectations?
+ #supports_block_expectations? ⇒ Boolean
@@ -763,10 +767,10 @@
-
- Generated on Tue Oct 8 11:39:26 2019 by
+
+ Generated on Thu Jan 2 10:07:35 2020 by
yard
- 0.8.7.6 (ruby-2.6.5).
+ 0.9.22 (ruby-2.7.0).
+
-
+
\ No newline at end of file
diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/BaseMatcher/DefaultFailureMessages.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/BaseMatcher/DefaultFailureMessages.html
index d9337b3a9..e78cae4ba 100644
--- a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/BaseMatcher/DefaultFailureMessages.html
+++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/BaseMatcher/DefaultFailureMessages.html
@@ -1,94 +1,93 @@
-
-
+
+
Module: RSpec::Rails::Matchers::BaseMatcher::DefaultFailureMessages
- — Documentation by YARD 0.8.7.6
+ — Documentation by YARD 0.9.22
-
+
-
+
-
+
-
-
+
-
+
-
-
+
+
+
+
+
+
+
+
-
+
-
-
-
-
+
+
- Module: RSpec::Rails::Matchers::BaseMatcher::DefaultFailureMessages
+ Module: RSpec::Rails::Matchers::BaseMatcher::DefaultFailureMessages
Private
+
+
-
-
-
- - Included in:
- - RSpec::Rails::Matchers::BaseMatcher
-
+
+
+ - Included in:
+ - RSpec::Rails::Matchers::BaseMatcher
+
- - Defined in:
- - lib/rspec/rails/matchers/base_matcher.rb
+
+
+
+ - Defined in:
+ - lib/rspec/rails/matchers/base_matcher.rb
+
-
-
+
Overview
@@ -114,7 +113,7 @@ Overview
Instance Method Summary
- (collapse)
+ collapse
@@ -122,7 +121,7 @@
-
- - (String) failure_message
+ #failure_message ⇒ String
@@ -145,7 +144,7 @@
-
- - (String) failure_message_when_negated
+ #failure_message_when_negated ⇒ String
@@ -177,7 +176,7 @@
Instance Method Details
- - (String) failure_message
+ #failure_message ⇒ String
@@ -218,12 +217,12 @@
-158
-159
-160
+151
+152
+153
- # File 'lib/rspec/rails/matchers/base_matcher.rb', line 158
+ # File 'lib/rspec/rails/matchers/base_matcher.rb', line 151
def failure_message
"expected #{description_of @actual} to #{description}".dup
@@ -236,7 +235,7 @@
- - (String) failure_message_when_negated
+ #failure_message_when_negated ⇒ String
@@ -277,12 +276,12 @@
-167
-168
-169
+160
+161
+162
- # File 'lib/rspec/rails/matchers/base_matcher.rb', line 167
+ # File 'lib/rspec/rails/matchers/base_matcher.rb', line 160
def failure_message_when_negated
"expected #{description_of @actual} not to #{description}".dup
@@ -296,10 +295,10 @@
-
- Generated on Tue Oct 8 11:39:26 2019 by
+
+ Generated on Thu Jan 2 10:07:34 2020 by
yard
- 0.8.7.6 (ruby-2.6.5).
+ 0.9.22 (ruby-2.7.0).
+
-
+
\ No newline at end of file
diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/BeANew.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/BeANew.html
index c431f993f..78284ee25 100644
--- a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/BeANew.html
+++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/BeANew.html
@@ -1,80 +1,75 @@
-
-
+
+
Class: RSpec::Rails::Matchers::BeANew
- — Documentation by YARD 0.8.7.6
+ — Documentation by YARD 0.9.22
-
+
-
+
-
+
-
-
+
-
+
-
-
+
+
+
+
+
+
+
+
-
+
-
-
+
+
-
-
- Class: RSpec::Rails::Matchers::BeANew
+ Class: RSpec::Rails::Matchers::BeANew
Private
-
-
+
- - Inherits:
- -
+
+ - Inherits:
+ -
BaseMatcher
@@ -87,21 +82,25 @@
show all
-
-
+
+
+
-
-
- - Defined in:
- - lib/rspec/rails/matchers/be_a_new.rb
+
+
+
+
+
+ - Defined in:
+ - lib/rspec/rails/matchers/be_a_new.rb
+
-
-
+
Overview
@@ -125,9 +124,6 @@ Overview
- Constant Summary
-
-
Constant Summary
@@ -143,7 +139,7 @@ Constants inherited
Instance Method Summary
- (collapse)
+ collapse
@@ -151,7 +147,7 @@
-
- - (Object) with(expected_attributes)
+ #with(expected_attributes) ⇒ Object
@@ -211,7 +207,7 @@
Instance Method Details
- - (Object) with(expected_attributes)
+ #with(expected_attributes) ⇒ Object
@@ -260,10 +256,10 @@
-
- Generated on Tue Oct 8 11:39:26 2019 by
+
+ Generated on Thu Jan 2 10:07:35 2020 by
yard
- 0.8.7.6 (ruby-2.6.5).
+ 0.9.22 (ruby-2.7.0).
+
-
+
\ No newline at end of file
diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/HaveHttpStatus.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/HaveHttpStatus.html
index 437638dce..21fad668c 100644
--- a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/HaveHttpStatus.html
+++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/HaveHttpStatus.html
@@ -1,94 +1,93 @@
-
-
+
+
Module: RSpec::Rails::Matchers::HaveHttpStatus
- — Documentation by YARD 0.8.7.6
+ — Documentation by YARD 0.9.22
-
+
-
+
-
+
-
-
+
-
+
-
-
+
+
+
+
+
+
+
+
-
+
-
-
+
+
-
-
- Module: RSpec::Rails::Matchers::HaveHttpStatus
+ Module: RSpec::Rails::Matchers::HaveHttpStatus
Private
+
+
-
-
-
- - Included in:
- - GenericStatus, NumericCode, SymbolicStatus
-
+
+
+
+ - Included in:
+ - GenericStatus, NumericCode, SymbolicStatus
+
+
- - Defined in:
- - lib/rspec/rails/matchers/have_http_status.rb
+
+ - Defined in:
+ - lib/rspec/rails/matchers/have_http_status.rb
+
-
-
+
Overview
@@ -124,7 +123,7 @@ Overview
Class Method Summary
- (collapse)
+ collapse
@@ -132,7 +131,7 @@
-
- + (ActionDispatch::TestResponse) as_test_response(obj)
+ .as_test_response(obj) ⇒ ActionDispatch::TestResponse
@@ -155,7 +154,7 @@
-
- + (Object) matcher_for_status(target)
+ .matcher_for_status(target) ⇒ Object
@@ -179,7 +178,7 @@
Instance Method Summary
- (collapse)
+ collapse
@@ -187,7 +186,7 @@
-
- - (String?) invalid_response_type_message
+ #invalid_response_type_message ⇒ String?
@@ -219,7 +218,7 @@
Class Method Details
- + (ActionDispatch::TestResponse) as_test_response(obj)
+ .as_test_response(obj) ⇒ ActionDispatch::TestResponse
@@ -332,7 +331,7 @@
- + (Object) matcher_for_status(target)
+ .matcher_for_status(target) ⇒ Object
@@ -409,12 +408,12 @@
# File 'lib/rspec/rails/matchers/have_http_status.rb', line 19
def self.matcher_for_status(target)
- if GenericStatus.valid_statuses.include?(target)
- GenericStatus.new(target)
+ if GenericStatus.valid_statuses.include?(target)
+ GenericStatus.new(target)
elsif Symbol === target
- SymbolicStatus.new(target)
+ SymbolicStatus.new(target)
else
- NumericCode.new(target)
+ NumericCode.new(target)
end
end
@@ -431,7 +430,7 @@ Instance Method Details
- - (String?) invalid_response_type_message
+ #invalid_response_type_message ⇒ String?
@@ -444,7 +443,7 @@
You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a formatted failure message if
-@invalid_response
is present, nil
otherwise
+@invalid_response
is present, nil
otherwise.
@@ -480,13 +479,15 @@
61
62
63
-64
+64
+65
# File 'lib/rspec/rails/matchers/have_http_status.rb', line 60
def invalid_response_type_message
return unless @invalid_response
+
"expected a response object, but an instance of " \
"#{@invalid_response.class} was received"
end
@@ -499,10 +500,10 @@
-
- Generated on Tue Oct 8 11:39:26 2019 by
+
+ Generated on Thu Jan 2 10:07:34 2020 by
yard
- 0.8.7.6 (ruby-2.6.5).
+ 0.9.22 (ruby-2.7.0).
+
-
+
\ No newline at end of file
diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/HaveHttpStatus/GenericStatus.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/HaveHttpStatus/GenericStatus.html
index 5c3682b63..789329f60 100644
--- a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/HaveHttpStatus/GenericStatus.html
+++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/HaveHttpStatus/GenericStatus.html
@@ -1,80 +1,75 @@
-
-
+
+
Class: RSpec::Rails::Matchers::HaveHttpStatus::GenericStatus
- — Documentation by YARD 0.8.7.6
+ — Documentation by YARD 0.9.22
-
+
-
+
-
+
-
-
+
-
+
-
-
+
+
+
+
+
+
+
+
-
+
-
-
-
-
+
+
- Class: RSpec::Rails::Matchers::HaveHttpStatus::GenericStatus
+ Class: RSpec::Rails::Matchers::HaveHttpStatus::GenericStatus
Private
-
-
+
- - Inherits:
- -
+
+ - Inherits:
+ -
BaseMatcher
@@ -87,25 +82,30 @@
show all
-
-
+
+
+
-
-
- - Includes:
- - RSpec::Rails::Matchers::HaveHttpStatus
-
-
+
+ - Includes:
+ - RSpec::Rails::Matchers::HaveHttpStatus
+
+
+
+
+
+
- - Defined in:
- - lib/rspec/rails/matchers/have_http_status.rb
+
+ - Defined in:
+ - lib/rspec/rails/matchers/have_http_status.rb
+
-
-
+
Overview
@@ -145,9 +145,6 @@ Overview
- Constant Summary
-
-
Constant Summary
@@ -163,7 +160,7 @@ Constants inherited
Class Method Summary
- (collapse)
+ collapse
@@ -171,7 +168,7 @@
-
- + (Array<Symbol>) valid_statuses
+ .valid_statuses ⇒ Array<Symbol>
@@ -195,7 +192,7 @@
Instance Method Summary
- (collapse)
+ collapse
@@ -203,7 +200,7 @@
-
- - (String) description
+ #description ⇒ String
@@ -225,7 +222,7 @@
-
- - (String) failure_message
+ #failure_message ⇒ String
@@ -248,7 +245,7 @@
-
- - (String) failure_message_when_negated
+ #failure_message_when_negated ⇒ String
@@ -271,7 +268,7 @@
-
- - (GenericStatus) initialize(type)
+ #initialize(type) ⇒ GenericStatus
@@ -296,7 +293,7 @@
-
- - (Boolean) matches?(response)
+ #matches?(response) ⇒ Boolean
@@ -360,7 +357,7 @@
Constructor Details
- - (GenericStatus) initialize(type)
+ #initialize(type) ⇒ GenericStatus
@@ -372,7 +369,7 @@
This method is part of a private API.
You should avoid using this method if possible, as it may be removed or be changed in the future.
-
Returns a new instance of GenericStatus
+Returns a new instance of GenericStatus.
@@ -386,22 +383,24 @@
-253
-254
255
256
257
258
259
-260
+260
+261
+262
+263
- # File 'lib/rspec/rails/matchers/have_http_status.rb', line 253
+ # File 'lib/rspec/rails/matchers/have_http_status.rb', line 255
def initialize(type)
unless self.class.valid_statuses.include?(type)
raise ArgumentError, "Invalid generic HTTP status: #{type.inspect}"
end
+
@expected = type
@actual = nil
@invalid_response = nil
@@ -421,7 +420,7 @@ Class Method Details
- + (Array<Symbol>) valid_statuses
+ .valid_statuses ⇒ Array<Symbol>
@@ -434,7 +433,7 @@
You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns of status codes which represent a HTTP status
-code "group"
+code "group".
@@ -473,16 +472,16 @@
-245
-246
247
248
249
250
-251
+251
+252
+253
- # File 'lib/rspec/rails/matchers/have_http_status.rb', line 245
+ # File 'lib/rspec/rails/matchers/have_http_status.rb', line 247
def self.valid_statuses
[
@@ -505,7 +504,7 @@ Instance Method Details
- - (String) description
+ #description ⇒ String
@@ -543,12 +542,12 @@
-274
-275
-276
+277
+278
+279
- # File 'lib/rspec/rails/matchers/have_http_status.rb', line 274
+ # File 'lib/rspec/rails/matchers/have_http_status.rb', line 277
def description
"respond with #{type_message}"
@@ -561,7 +560,7 @@
- - (String) failure_message
+ #failure_message ⇒ String
@@ -573,7 +572,7 @@
This method is part of a private API.
You should avoid using this method if possible, as it may be removed or be changed in the future.
-
Returns explaining why the match failed
+Returns explaining why the match failed.
@@ -604,13 +603,13 @@
-279
-280
-281
-282
+282
+283
+284
+285
- # File 'lib/rspec/rails/matchers/have_http_status.rb', line 279
+ # File 'lib/rspec/rails/matchers/have_http_status.rb', line 282
def failure_message
invalid_response_type_message ||
@@ -624,7 +623,7 @@
- - (String) failure_message_when_negated
+ #failure_message_when_negated ⇒ String
@@ -636,7 +635,7 @@
This method is part of a private API.
You should avoid using this method if possible, as it may be removed or be changed in the future.
-
Returns explaining why the match failed
+Returns explaining why the match failed.
@@ -667,13 +666,13 @@
-285
-286
-287
-288
+288
+289
+290
+291
- # File 'lib/rspec/rails/matchers/have_http_status.rb', line 285
+ # File 'lib/rspec/rails/matchers/have_http_status.rb', line 288
def failure_message_when_negated
invalid_response_type_message ||
@@ -687,7 +686,7 @@
- - (Boolean) matches?(response)
+ #matches?(response) ⇒ Boolean
@@ -700,7 +699,7 @@
You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns true
if Rack's associated numeric HTTP code matched
-the response
code or the named response status
+the response
code or the named response status.
@@ -732,17 +731,17 @@
-264
-265
-266
267
268
269
270
-271
+271
+272
+273
+274
- # File 'lib/rspec/rails/matchers/have_http_status.rb', line 264
+ # File 'lib/rspec/rails/matchers/have_http_status.rb', line 267
def matches?(response)
test_response = as_test_response(response)
@@ -761,10 +760,10 @@
-
- Generated on Tue Oct 8 11:39:26 2019 by
+
+ Generated on Thu Jan 2 10:07:35 2020 by
yard
- 0.8.7.6 (ruby-2.6.5).
+ 0.9.22 (ruby-2.7.0).
+
-
+
\ No newline at end of file
diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/HaveHttpStatus/NumericCode.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/HaveHttpStatus/NumericCode.html
index 3bb67e584..2d12d8a85 100644
--- a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/HaveHttpStatus/NumericCode.html
+++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/HaveHttpStatus/NumericCode.html
@@ -1,80 +1,75 @@
-
-
+
+
Class: RSpec::Rails::Matchers::HaveHttpStatus::NumericCode
- — Documentation by YARD 0.8.7.6
+ — Documentation by YARD 0.9.22
-
+
-
+
-
+
-
-
+
-
+
-
-
+
+
+
+
+
+
+
+
-
+
-
-
+
+
-
-
- Class: RSpec::Rails::Matchers::HaveHttpStatus::NumericCode
+ Class: RSpec::Rails::Matchers::HaveHttpStatus::NumericCode
Private
-
-
+
- - Inherits:
- -
+
+ - Inherits:
+ -
BaseMatcher
@@ -87,25 +82,30 @@
show all
-
-
+
+
+
-
-
- - Includes:
- - RSpec::Rails::Matchers::HaveHttpStatus
-
-
+
+ - Includes:
+ - RSpec::Rails::Matchers::HaveHttpStatus
+
- - Defined in:
- - lib/rspec/rails/matchers/have_http_status.rb
-
-
+
+
+
+
+
+ - Defined in:
+ - lib/rspec/rails/matchers/have_http_status.rb
+
+
+
Overview
@@ -140,9 +140,6 @@ Overview
- Constant Summary
-
-
Constant Summary
@@ -158,7 +155,7 @@ Constants inherited
Instance Method Summary
- (collapse)
+ collapse
@@ -166,7 +163,7 @@
-
- - (String) description
+ #description ⇒ String
@@ -188,7 +185,7 @@
-
- - (String) failure_message
+ #failure_message ⇒ String
@@ -211,7 +208,7 @@
-
- - (String) failure_message_when_negated
+ #failure_message_when_negated ⇒ String
@@ -234,7 +231,7 @@
-
- - (NumericCode) initialize(code)
+ #initialize(code) ⇒ NumericCode
@@ -259,7 +256,7 @@
-
- - (Boolean) matches?(response)
+ #matches?(response) ⇒ Boolean
@@ -323,7 +320,7 @@
Constructor Details
- - (NumericCode) initialize(code)
+ #initialize(code) ⇒ NumericCode
@@ -335,7 +332,7 @@
This method is part of a private API.
You should avoid using this method if possible, as it may be removed or be changed in the future.
-
Returns a new instance of NumericCode
+Returns a new instance of NumericCode.
@@ -349,14 +346,14 @@
-79
80
81
82
-83
+83
+84
- # File 'lib/rspec/rails/matchers/have_http_status.rb', line 79
+ # File 'lib/rspec/rails/matchers/have_http_status.rb', line 80
def initialize(code)
@expected = code.to_i
@@ -378,7 +375,7 @@ Instance Method Details
- - (String) description
+ #description ⇒ String
@@ -416,12 +413,12 @@
-97
98
-99
+99
+100
- # File 'lib/rspec/rails/matchers/have_http_status.rb', line 97
+ # File 'lib/rspec/rails/matchers/have_http_status.rb', line 98
def description
"respond with numeric status code #{expected}"
@@ -434,7 +431,7 @@
- - (String) failure_message
+ #failure_message ⇒ String
@@ -446,7 +443,7 @@
This method is part of a private API.
You should avoid using this method if possible, as it may be removed or be changed in the future.
-
Returns explaining why the match failed
+Returns explaining why the match failed.
@@ -477,14 +474,14 @@
-102
103
104
105
-106
+106
+107
- # File 'lib/rspec/rails/matchers/have_http_status.rb', line 102
+ # File 'lib/rspec/rails/matchers/have_http_status.rb', line 103
def failure_message
invalid_response_type_message ||
@@ -499,7 +496,7 @@
- - (String) failure_message_when_negated
+ #failure_message_when_negated ⇒ String
@@ -511,7 +508,7 @@
This method is part of a private API.
You should avoid using this method if possible, as it may be removed or be changed in the future.
-
Returns explaining why the match failed
+Returns explaining why the match failed.
@@ -542,14 +539,14 @@
-109
110
111
112
-113
+113
+114
- # File 'lib/rspec/rails/matchers/have_http_status.rb', line 109
+ # File 'lib/rspec/rails/matchers/have_http_status.rb', line 110
def failure_message_when_negated
invalid_response_type_message ||
@@ -564,7 +561,7 @@
- - (Boolean) matches?(response)
+ #matches?(response) ⇒ Boolean
@@ -576,7 +573,7 @@
This method is part of a private API.
You should avoid using this method if possible, as it may be removed or be changed in the future.
-
Returns true
if the numeric code matched the response
code
+Returns true
if the numeric code matched the response
code.
@@ -626,17 +623,17 @@
-87
88
89
90
91
92
93
-94
+94
+95
- # File 'lib/rspec/rails/matchers/have_http_status.rb', line 87
+ # File 'lib/rspec/rails/matchers/have_http_status.rb', line 88
def matches?(response)
test_response = as_test_response(response)
@@ -655,10 +652,10 @@
-
- Generated on Tue Oct 8 11:39:26 2019 by
+
+ Generated on Thu Jan 2 10:07:35 2020 by
yard
- 0.8.7.6 (ruby-2.6.5).
+ 0.9.22 (ruby-2.7.0).
+
-
+
\ No newline at end of file
diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/HaveHttpStatus/SymbolicStatus.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/HaveHttpStatus/SymbolicStatus.html
index 13a57aaba..b9ec7303b 100644
--- a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/HaveHttpStatus/SymbolicStatus.html
+++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/HaveHttpStatus/SymbolicStatus.html
@@ -1,80 +1,75 @@
-
-
+
+
Class: RSpec::Rails::Matchers::HaveHttpStatus::SymbolicStatus
- — Documentation by YARD 0.8.7.6
+ — Documentation by YARD 0.9.22
-
+
-
+
-
+
-
-
+
-
+
-
-
+
+
+
+
+
+
+
+
-
+
-
-
+
+
-
-
- Class: RSpec::Rails::Matchers::HaveHttpStatus::SymbolicStatus
+ Class: RSpec::Rails::Matchers::HaveHttpStatus::SymbolicStatus
Private
-
-
+
- - Inherits:
- -
+
+ - Inherits:
+ -
BaseMatcher
@@ -87,25 +82,30 @@
show all
-
-
+
+
+
+
-
-
- - Includes:
- - RSpec::Rails::Matchers::HaveHttpStatus
-
-
+
+ - Includes:
+ - RSpec::Rails::Matchers::HaveHttpStatus
+
+
+
+
+
- - Defined in:
- - lib/rspec/rails/matchers/have_http_status.rb
+
+ - Defined in:
+ - lib/rspec/rails/matchers/have_http_status.rb
+
-
-
+
Overview
@@ -142,9 +142,6 @@ Overview
- Constant Summary
-
-
Constant Summary
@@ -160,7 +157,7 @@ Constants inherited
Instance Method Summary
- (collapse)
+ collapse
@@ -168,7 +165,7 @@
-
- - (String) description
+ #description ⇒ String
@@ -190,7 +187,7 @@
-
- - (String) failure_message
+ #failure_message ⇒ String
@@ -213,7 +210,7 @@
-
- - (String) failure_message_when_negated
+ #failure_message_when_negated ⇒ String
@@ -236,7 +233,7 @@
-
- - (SymbolicStatus) initialize(status)
+ #initialize(status) ⇒ SymbolicStatus
@@ -261,7 +258,7 @@
-
- - (Boolean) matches?(response)
+ #matches?(response) ⇒ Boolean
@@ -325,7 +322,7 @@
Constructor Details
- - (SymbolicStatus) initialize(status)
+ #initialize(status) ⇒ SymbolicStatus
@@ -337,7 +334,7 @@
This method is part of a private API.
You should avoid using this method if possible, as it may be removed or be changed in the future.
-
Returns a new instance of SymbolicStatus
+Returns a new instance of SymbolicStatus.
@@ -351,15 +348,15 @@
-130
131
132
133
134
-135
+135
+136
- # File 'lib/rspec/rails/matchers/have_http_status.rb', line 130
+ # File 'lib/rspec/rails/matchers/have_http_status.rb', line 131
def initialize(status)
@expected_status = status
@@ -382,7 +379,7 @@ Instance Method Details
- - (String) description
+ #description ⇒ String
@@ -420,12 +417,12 @@
-150
151
-152
+152
+153
- # File 'lib/rspec/rails/matchers/have_http_status.rb', line 150
+ # File 'lib/rspec/rails/matchers/have_http_status.rb', line 151
def description
"respond with status code #{pp_expected}"
@@ -438,7 +435,7 @@
- - (String) failure_message
+ #failure_message ⇒ String
@@ -450,7 +447,7 @@
This method is part of a private API.
You should avoid using this method if possible, as it may be removed or be changed in the future.
-
Returns explaining why the match failed
+Returns explaining why the match failed.
@@ -481,14 +478,14 @@
-155
156
157
158
-159
+159
+160
- # File 'lib/rspec/rails/matchers/have_http_status.rb', line 155
+ # File 'lib/rspec/rails/matchers/have_http_status.rb', line 156
def failure_message
invalid_response_type_message ||
@@ -503,7 +500,7 @@
- - (String) failure_message_when_negated
+ #failure_message_when_negated ⇒ String
@@ -515,7 +512,7 @@
This method is part of a private API.
You should avoid using this method if possible, as it may be removed or be changed in the future.
-
Returns explaining why the match failed
+Returns explaining why the match failed.
@@ -546,14 +543,14 @@
-162
163
164
165
-166
+166
+167
- # File 'lib/rspec/rails/matchers/have_http_status.rb', line 162
+ # File 'lib/rspec/rails/matchers/have_http_status.rb', line 163
def failure_message_when_negated
invalid_response_type_message ||
@@ -568,7 +565,7 @@
- - (Boolean) matches?(response)
+ #matches?(response) ⇒ Boolean
@@ -581,7 +578,7 @@
You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns true
if Rack's associated numeric HTTP code matched
-the response
code
+the response
code.
@@ -632,17 +629,17 @@
-140
141
142
143
144
145
146
-147
+147
+148
- # File 'lib/rspec/rails/matchers/have_http_status.rb', line 140
+ # File 'lib/rspec/rails/matchers/have_http_status.rb', line 141
def matches?(response)
test_response = as_test_response(response)
@@ -661,10 +658,10 @@
-
- Generated on Tue Oct 8 11:39:26 2019 by
+
+ Generated on Thu Jan 2 10:07:35 2020 by
yard
- 0.8.7.6 (ruby-2.6.5).
+ 0.9.22 (ruby-2.7.0).
+
-
+
\ No newline at end of file
diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/RedirectTo.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/RedirectTo.html
index be461f3f1..de2d755b3 100644
--- a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/RedirectTo.html
+++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/RedirectTo.html
@@ -1,94 +1,93 @@
-
-
+
+
Module: RSpec::Rails::Matchers::RedirectTo
- — Documentation by YARD 0.8.7.6
+ — Documentation by YARD 0.9.22
-
+
-
+
-
+
-
-
+
-
+
-
-
+
+
+
+
+
+
+
+
-
+
-
-
-
-
+
+
- Module: RSpec::Rails::Matchers::RedirectTo
+ Module: RSpec::Rails::Matchers::RedirectTo
+
+
-
-
-
- - Included in:
- - ControllerExampleGroup, RequestExampleGroup, SystemExampleGroup
-
+
+
+ - Included in:
+ - ControllerExampleGroup, RequestExampleGroup, SystemExampleGroup
+
- - Defined in:
- - lib/rspec/rails/matchers/redirect_to.rb
+
+
+
+ - Defined in:
+ - lib/rspec/rails/matchers/redirect_to.rb
+
-
-
+
Overview
@@ -110,7 +109,7 @@ Overview
Instance Method Summary
- (collapse)
+ collapse
@@ -118,7 +117,7 @@
-
- - (Object) redirect_to(target)
+ #redirect_to(target) ⇒ Object
@@ -150,7 +149,7 @@
Instance Method Details
- - (Object) redirect_to(target)
+ #redirect_to(target) ⇒ Object
@@ -199,10 +198,10 @@
-
- Generated on Tue Oct 8 11:39:25 2019 by
+
+ Generated on Thu Jan 2 10:07:34 2020 by
yard
- 0.8.7.6 (ruby-2.6.5).
+ 0.9.22 (ruby-2.7.0).
+
-
+
\ No newline at end of file
diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/RenderTemplate.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/RenderTemplate.html
index 584d1c31f..c56c90482 100644
--- a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/RenderTemplate.html
+++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/RenderTemplate.html
@@ -1,94 +1,93 @@
-
-
+
+
Module: RSpec::Rails::Matchers::RenderTemplate
- — Documentation by YARD 0.8.7.6
+ — Documentation by YARD 0.9.22
-
+
-
+
-
+
-
-
+
-
+
-
-
+
+
+
+
+
+
+
+
-
+
-
-
-
-
+
+
- Module: RSpec::Rails::Matchers::RenderTemplate
+ Module: RSpec::Rails::Matchers::RenderTemplate
+
+
-
-
-
- - Included in:
- - ControllerExampleGroup, RequestExampleGroup, SystemExampleGroup, ViewExampleGroup
-
+
+
+ - Included in:
+ - ControllerExampleGroup, RequestExampleGroup, SystemExampleGroup, ViewExampleGroup
+
- - Defined in:
- - lib/rspec/rails/matchers/have_rendered.rb
+
+
+
+ - Defined in:
+ - lib/rspec/rails/matchers/have_rendered.rb
+
-
-
+
Overview
@@ -110,7 +109,7 @@ Overview
Instance Method Summary
- (collapse)
+ collapse
@@ -118,7 +117,7 @@
-
- - (Object) have_rendered(options, message = nil)
+ #have_rendered(options, message = nil) ⇒ Object
@@ -152,7 +151,7 @@
Instance Method Details
- - (Object) have_rendered(options, message = nil)
+ #have_rendered(options, message = nil) ⇒ Object
@@ -186,12 +185,12 @@
-55
56
-57
+57
+58
- # File 'lib/rspec/rails/matchers/have_rendered.rb', line 55
+ # File 'lib/rspec/rails/matchers/have_rendered.rb', line 56
def have_rendered(options, message = nil)
RenderTemplateMatcher.new(self, options, message)
@@ -205,10 +204,10 @@
-
- Generated on Tue Oct 8 11:39:25 2019 by
+
+ Generated on Thu Jan 2 10:07:34 2020 by
yard
- 0.8.7.6 (ruby-2.6.5).
+ 0.9.22 (ruby-2.7.0).
+
-
+
\ No newline at end of file
diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/RoutingMatchers.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/RoutingMatchers.html
index ae69469ef..446b921ca 100644
--- a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/RoutingMatchers.html
+++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/RoutingMatchers.html
@@ -1,98 +1,98 @@
-
-
+
+
Module: RSpec::Rails::Matchers::RoutingMatchers
- — Documentation by YARD 0.8.7.6
+ — Documentation by YARD 0.9.22
-
+
-
+
-
+
-
-
+
-
+
-
-
+
+
+
+
+
+
+
+
-
+
-
-
+
+
-
-
- Module: RSpec::Rails::Matchers::RoutingMatchers
+ Module: RSpec::Rails::Matchers::RoutingMatchers
+
+
-
-
- - Extended by:
- - Matchers::DSL
-
-
+
+ - Extended by:
+ - Matchers::DSL
+
-
- - Included in:
- - ControllerExampleGroup, RoutingExampleGroup
-
+
- - Defined in:
- - lib/rspec/rails/matchers/routing_matchers.rb
+
+ - Included in:
+ - ControllerExampleGroup, RoutingExampleGroup
+
-
-
+
+
+
+ - Defined in:
+ - lib/rspec/rails/matchers/routing_matchers.rb
+
+
+
Overview
@@ -124,7 +124,7 @@ Overview
Instance Method Summary
- (collapse)
+ collapse
@@ -132,7 +132,7 @@
-
- - (Object) be_routable
+ #be_routable ⇒ Object
@@ -155,7 +155,7 @@
-
- - (Object) route_to(*expected)
+ #route_to(*expected) ⇒ Object
@@ -188,7 +188,7 @@
Instance Method Details
- - (Object) be_routable
+ #be_routable ⇒ Object
@@ -212,9 +212,9 @@
You can use route helpers provided by rspec-rails.
- expect(:get => "/a/path").to be_routable
-expect(:post => "/another/path").to be_routable
-expect(:put => "/yet/another/path").to be_routable
+ expect(get: "/a/path").to be_routable
+expect(post: "/another/path").to be_routable
+expect(put: "/yet/another/path").to be_routable
@@ -243,7 +243,7 @@
- - (Object) route_to(*expected)
+ #route_to(*expected) ⇒ Object
@@ -264,12 +264,12 @@
-expect(:get => "/things/special").to route_to(
- :controller => "things",
- :action => "special"
+expect(get: "/things/special").to route_to(
+ controller: "things",
+ action: "special"
)
-expect(:get => "/things/special").to route_to("things#special")
+expect(get: "/things/special").to route_to("things#special")
@@ -277,7 +277,7 @@
See Also:
- - http://api.rubyonrails.org/classes/ActionDispatch/Assertions/RoutingAssertions.html#method-i-assert_recognizes
+ - https://api.rubyonrails.org/classes/ActionDispatch/Assertions/RoutingAssertions.html#method-i-assert_recognizes
@@ -306,10 +306,10 @@
-
- Generated on Tue Oct 8 11:39:25 2019 by
+
+ Generated on Thu Jan 2 10:07:34 2020 by
yard
- 0.8.7.6 (ruby-2.6.5).
+ 0.9.22 (ruby-2.7.0).
+
-
+
\ No newline at end of file
diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/RoutingMatchers/RouteHelpers.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/RoutingMatchers/RouteHelpers.html
index f2c98902f..a488b2fe5 100644
--- a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/RoutingMatchers/RouteHelpers.html
+++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/RoutingMatchers/RouteHelpers.html
@@ -1,94 +1,93 @@
-
-
+
+
Module: RSpec::Rails::Matchers::RoutingMatchers::RouteHelpers
- — Documentation by YARD 0.8.7.6
+ — Documentation by YARD 0.9.22
-
+
-
+
-
+
-
-
+
-
+
-
-
+
+
+
+
+
+
+
+
-
+
-
-
-
-
+
+
- Module: RSpec::Rails::Matchers::RoutingMatchers::RouteHelpers
+ Module: RSpec::Rails::Matchers::RoutingMatchers::RouteHelpers
+
+
-
-
-
- - Included in:
- - RoutingExampleGroup
-
+
+
+ - Included in:
+ - RoutingExampleGroup
+
- - Defined in:
- - lib/rspec/rails/matchers/routing_matchers.rb
+
+
+
+ - Defined in:
+ - lib/rspec/rails/matchers/routing_matchers.rb
+
-
-
+
Overview
@@ -110,7 +109,7 @@ Overview
Instance Method Summary
- (collapse)
+ collapse
@@ -118,7 +117,7 @@
-
- - (Object) delete
+ #delete ⇒ Object
@@ -141,7 +140,7 @@
-
- - (Object) get
+ #get ⇒ Object
@@ -164,7 +163,7 @@
-
- - (Object) head
+ #head ⇒ Object
@@ -187,7 +186,7 @@
-
- - (Object) options
+ #options ⇒ Object
@@ -210,7 +209,7 @@
-
- - (Object) patch
+ #patch ⇒ Object
@@ -233,7 +232,7 @@
-
- - (Object) post
+ #post ⇒ Object
@@ -256,7 +255,7 @@
-
- - (Object) put
+ #put ⇒ Object
@@ -288,7 +287,7 @@
Instance Method Details
- - (Object) delete
+ #delete ⇒ Object
@@ -332,7 +331,7 @@
- - (Object) get
+ #get ⇒ Object
@@ -376,7 +375,7 @@
- - (Object) head
+ #head ⇒ Object
@@ -420,7 +419,7 @@
- - (Object) options
+ #options ⇒ Object
@@ -464,7 +463,7 @@
- - (Object) patch
+ #patch ⇒ Object
@@ -508,7 +507,7 @@
- - (Object) post
+ #post ⇒ Object
@@ -552,7 +551,7 @@
Module: RSpec
+-
-
-
+
-
- Defined in: -
- lib/rspec-rails.rb,
- lib/rspec/rails/version.rb,
lib/rspec/rails/adapters.rb,
lib/rspec/rails/matchers.rb,
lib/rspec/rails/view_assigns.rb,
lib/rspec/rails/configuration.rb,
lib/rspec/rails/feature_check.rb,
lib/rspec/rails/active_record.rb,
lib/rspec/rails/view_rendering.rb,
lib/rspec/rails/fixture_support.rb,
lib/rspec/rails/view_path_builder.rb,
lib/rspec/rails/matchers/be_valid.rb,
lib/rspec/rails/matchers/be_a_new.rb,
lib/rspec/rails/view_spec_methods.rb,
lib/rspec/rails/matchers/active_job.rb,
lib/rspec/rails/matchers/redirect_to.rb,
lib/rspec/rails/file_fixture_support.rb,
lib/rspec/rails/matchers/base_matcher.rb,
lib/rspec/rails/matchers/have_rendered.rb,
lib/rspec/rails/matchers/be_new_record.rb,
lib/rspec/rails/matchers/routing_matchers.rb,
lib/rspec/rails/example/job_example_group.rb,
lib/rspec/rails/example/job_example_group.rb,
lib/rspec/rails/matchers/have_http_status.rb,
lib/rspec/rails/example/view_example_group.rb,
lib/rspec/rails/matchers/have_enqueued_mail.rb,
lib/rspec/rails/fixture_file_upload_support.rb,
lib/rspec/rails/example/model_example_group.rb,
lib/rspec/rails/example/rails_example_group.rb,
lib/rspec/rails/example/mailer_example_group.rb,
lib/rspec/rails/example/mailer_example_group.rb,
lib/rspec/rails/example/helper_example_group.rb,
lib/rspec/rails/example/system_example_group.rb,
lib/rspec/rails/example/request_example_group.rb,
lib/rspec/rails/example/routing_example_group.rb,
lib/rspec/rails/example/feature_example_group.rb,
lib/rspec/rails/example/controller_example_group.rb + + +-
+
- Defined in: +
- lib/rspec-rails.rb,
+ lib/rspec/rails/version.rb,
lib/rspec/rails/adapters.rb,
lib/rspec/rails/matchers.rb,
lib/rspec/rails/view_assigns.rb,
lib/rspec/rails/active_record.rb,
lib/rspec/rails/configuration.rb,
lib/rspec/rails/feature_check.rb,
lib/rspec/rails/view_rendering.rb,
lib/rspec/rails/fixture_support.rb,
lib/rspec/rails/matchers/be_a_new.rb,
lib/rspec/rails/matchers/be_valid.rb,
lib/rspec/rails/view_path_builder.rb,
lib/rspec/rails/view_spec_methods.rb,
lib/rspec/rails/matchers/active_job.rb,
lib/rspec/rails/file_fixture_support.rb,
lib/rspec/rails/matchers/redirect_to.rb,
lib/rspec/rails/matchers/action_cable.rb,
lib/rspec/rails/matchers/base_matcher.rb,
lib/rspec/rails/matchers/be_new_record.rb,
lib/rspec/rails/matchers/have_rendered.rb,
lib/rspec/rails/matchers/action_mailbox.rb,
lib/rspec/rails/example/job_example_group.rb,
lib/rspec/rails/example/job_example_group.rb,
lib/rspec/rails/matchers/have_http_status.rb,
lib/rspec/rails/matchers/routing_matchers.rb,
lib/rspec/rails/example/view_example_group.rb,
lib/rspec/rails/example/model_example_group.rb,
lib/rspec/rails/example/rails_example_group.rb,
lib/rspec/rails/fixture_file_upload_support.rb,
lib/rspec/rails/matchers/have_enqueued_mail.rb,
lib/rspec/rails/example/helper_example_group.rb,
lib/rspec/rails/example/mailer_example_group.rb,
lib/rspec/rails/example/mailer_example_group.rb,
lib/rspec/rails/example/system_example_group.rb,
lib/rspec/rails/example/channel_example_group.rb,
lib/rspec/rails/example/channel_example_group.rb,
lib/rspec/rails/example/feature_example_group.rb,
lib/rspec/rails/example/mailbox_example_group.rb,
lib/rspec/rails/example/request_example_group.rb,
lib/rspec/rails/example/routing_example_group.rb,
lib/rspec/rails/example/controller_example_group.rb,
lib/rspec/rails/matchers/action_cable/have_streams.rb,
lib/rspec/rails/matchers/action_cable/have_broadcasted_to.rb
+
Overview
Overview
Module: RSpec::Rails
+ Module: RSpec::Rails
+
+
-
-
-
+
+
+
- - Defined in:
- - lib/rspec-rails.rb,
- lib/rspec/rails/version.rb,
lib/rspec/rails/adapters.rb,
lib/rspec/rails/matchers.rb,
lib/rspec/rails/view_assigns.rb,
lib/rspec/rails/configuration.rb,
lib/rspec/rails/feature_check.rb,
lib/rspec/rails/active_record.rb,
lib/rspec/rails/view_rendering.rb,
lib/rspec/rails/fixture_support.rb,
lib/rspec/rails/view_path_builder.rb,
lib/rspec/rails/matchers/be_valid.rb,
lib/rspec/rails/matchers/be_a_new.rb,
lib/rspec/rails/view_spec_methods.rb,
lib/rspec/rails/matchers/active_job.rb,
lib/rspec/rails/matchers/redirect_to.rb,
lib/rspec/rails/file_fixture_support.rb,
lib/rspec/rails/matchers/base_matcher.rb,
lib/rspec/rails/matchers/have_rendered.rb,
lib/rspec/rails/matchers/be_new_record.rb,
lib/rspec/rails/matchers/routing_matchers.rb,
lib/rspec/rails/example/job_example_group.rb,
lib/rspec/rails/example/job_example_group.rb,
lib/rspec/rails/matchers/have_http_status.rb,
lib/rspec/rails/example/view_example_group.rb,
lib/rspec/rails/matchers/have_enqueued_mail.rb,
lib/rspec/rails/fixture_file_upload_support.rb,
lib/rspec/rails/example/model_example_group.rb,
lib/rspec/rails/example/rails_example_group.rb,
lib/rspec/rails/example/mailer_example_group.rb,
lib/rspec/rails/example/mailer_example_group.rb,
lib/rspec/rails/example/helper_example_group.rb,
lib/rspec/rails/example/system_example_group.rb,
lib/rspec/rails/example/request_example_group.rb,
lib/rspec/rails/example/routing_example_group.rb,
lib/rspec/rails/example/feature_example_group.rb,
lib/rspec/rails/example/controller_example_group.rb
+
+ - Defined in:
+ - lib/rspec-rails.rb,
+ lib/rspec/rails/version.rb,
lib/rspec/rails/adapters.rb,
lib/rspec/rails/matchers.rb,
lib/rspec/rails/view_assigns.rb,
lib/rspec/rails/active_record.rb,
lib/rspec/rails/configuration.rb,
lib/rspec/rails/feature_check.rb,
lib/rspec/rails/view_rendering.rb,
lib/rspec/rails/fixture_support.rb,
lib/rspec/rails/matchers/be_a_new.rb,
lib/rspec/rails/matchers/be_valid.rb,
lib/rspec/rails/view_path_builder.rb,
lib/rspec/rails/view_spec_methods.rb,
lib/rspec/rails/matchers/active_job.rb,
lib/rspec/rails/file_fixture_support.rb,
lib/rspec/rails/matchers/redirect_to.rb,
lib/rspec/rails/matchers/action_cable.rb,
lib/rspec/rails/matchers/base_matcher.rb,
lib/rspec/rails/matchers/be_new_record.rb,
lib/rspec/rails/matchers/have_rendered.rb,
lib/rspec/rails/matchers/action_mailbox.rb,
lib/rspec/rails/example/job_example_group.rb,
lib/rspec/rails/example/job_example_group.rb,
lib/rspec/rails/matchers/have_http_status.rb,
lib/rspec/rails/matchers/routing_matchers.rb,
lib/rspec/rails/example/view_example_group.rb,
lib/rspec/rails/example/model_example_group.rb,
lib/rspec/rails/example/rails_example_group.rb,
lib/rspec/rails/fixture_file_upload_support.rb,
lib/rspec/rails/matchers/have_enqueued_mail.rb,
lib/rspec/rails/example/helper_example_group.rb,
lib/rspec/rails/example/mailer_example_group.rb,
lib/rspec/rails/example/mailer_example_group.rb,
lib/rspec/rails/example/system_example_group.rb,
lib/rspec/rails/example/channel_example_group.rb,
lib/rspec/rails/example/channel_example_group.rb,
lib/rspec/rails/example/feature_example_group.rb,
lib/rspec/rails/example/mailbox_example_group.rb,
lib/rspec/rails/example/request_example_group.rb,
lib/rspec/rails/example/routing_example_group.rb,
lib/rspec/rails/example/controller_example_group.rb,
lib/rspec/rails/matchers/action_cable/have_streams.rb,
lib/rspec/rails/matchers/action_cable/have_broadcasted_to.rb
+
-
-
+
Overview
@@ -102,7 +100,7 @@ Overview
- Modules: ControllerExampleGroup, FeatureExampleGroup, HelperExampleGroup, JobExampleGroup, MailerExampleGroup, Matchers, ModelExampleGroup, RailsExampleGroup, RequestExampleGroup, RoutingExampleGroup, SystemExampleGroup, Version, ViewAssigns, ViewExampleGroup, ViewRendering, ViewSpecMethods
+ Modules: ChannelExampleGroup, ControllerExampleGroup, FeatureExampleGroup, HelperExampleGroup, JobExampleGroup, MailboxExampleGroup, MailerExampleGroup, Matchers, ModelExampleGroup, RailsExampleGroup, RequestExampleGroup, RoutingExampleGroup, SystemExampleGroup, Version, ViewAssigns, ViewExampleGroup, ViewRendering, ViewSpecMethods
@@ -111,18 +109,19 @@
Overview
- Constant Summary
+
+ Constant Summary
+ collapse
+
+
- - DIRECTORY_MAPPINGS =
+
- Assertions =
-
- This constant is part of a private API.
- You should avoid using this constant if possible, as it may be removed or be changed in the future.
-
-Mappings used by infer_spec_type_from_file_location!
.
+ Constant aliased to either Minitest or TestUnit, depending on what is
+loaded.
@@ -132,24 +131,16 @@ Constant Summary
- {
- :controller => %w[spec controllers],
- :helper => %w[spec helpers],
- :job => %w[spec jobs],
- :mailer => %w[spec mailers],
- :model => %w[spec models],
- :request => %w[spec (requests|integration|api)],
- :routing => %w[spec routing],
- :view => %w[spec views],
- :feature => %w[spec features],
- :system => %w[spec system]
-}
+ Minitest::Assertions
- - Assertions =
+
- DIRECTORY_MAPPINGS =
-
Constant aliased to either Minitest or TestUnit, depending on what is
-loaded.
+
+ This constant is part of a private API.
+ You should avoid using this constant if possible, as it may be removed or be changed in the future.
+
+Mappings used by infer_spec_type_from_file_location!
.
@@ -159,7 +150,20 @@ Constant Summary
- Test::Unit::Assertions
+ {
+ channel: %w[spec channels],
+ controller: %w[spec controllers],
+ helper: %w[spec helpers],
+ job: %w[spec jobs],
+ mailer: %w[spec mailers],
+ model: %w[spec models],
+ request: %w[spec (requests|integration|api)],
+ routing: %w[spec routing],
+ view: %w[spec views],
+ feature: %w[spec features],
+ system: %w[spec system],
+ mailbox: %w[spec mailboxes]
+}
@@ -173,7 +177,7 @@ Constant Summary
Class Method Summary
- (collapse)
+ collapse
@@ -181,7 +185,7 @@
-
- + (Object) add_test_type_configurations(config)
+ .add_test_type_configurations(config) ⇒ Object
@@ -205,7 +209,7 @@
Instance Method Summary
- (collapse)
+ collapse
@@ -213,7 +217,7 @@
-
- - (Object) infer_spec_type_from_file_location!
+ #infer_spec_type_from_file_location! ⇒ Object
@@ -236,7 +240,7 @@
-
- - (Object) render_views(val)
+ #render_views(val) ⇒ Object
@@ -259,7 +263,7 @@
-
- - (Object) render_views=(val)
+ #render_views=(val) ⇒ Object
@@ -282,7 +286,7 @@
-
- - (Object) render_views?
+ #render_views? ⇒ Object
@@ -314,7 +318,7 @@
Class Method Details
- + (Object) add_test_type_configurations(config)
+ .add_test_type_configurations(config) ⇒ Object
@@ -340,8 +344,6 @@
-43
-44
45
46
47
@@ -350,21 +352,23 @@
50
51
52
-53
+53
+54
+55
- # File 'lib/rspec/rails/configuration.rb', line 43
+ # File 'lib/rspec/rails/configuration.rb', line 45
def self.add_test_type_configurations(config)
- config.include RSpec::Rails::ControllerExampleGroup, :type => :controller
- config.include RSpec::Rails::HelperExampleGroup, :type => :helper
- config.include RSpec::Rails::ModelExampleGroup, :type => :model
- config.include RSpec::Rails::RequestExampleGroup, :type => :request
- config.include RSpec::Rails::RoutingExampleGroup, :type => :routing
- config.include RSpec::Rails::ViewExampleGroup, :type => :view
- config.include RSpec::Rails::FeatureExampleGroup, :type => :feature
- config.include RSpec::Rails::Matchers
- config.include RSpec::Rails::SystemExampleGroup, :type => :system
+ config.include RSpec::Rails::ControllerExampleGroup, type: :controller
+ config.include RSpec::Rails::HelperExampleGroup, type: :helper
+ config.include RSpec::Rails::ModelExampleGroup, type: :model
+ config.include RSpec::Rails::RequestExampleGroup, type: :request
+ config.include RSpec::Rails::RoutingExampleGroup, type: :routing
+ config.include RSpec::Rails::ViewExampleGroup, type: :view
+ config.include RSpec::Rails::FeatureExampleGroup, type: :feature
+ config.include RSpec::Rails::Matchers
+ config.include RSpec::Rails::SystemExampleGroup, type: :system
end
@@ -380,7 +384,7 @@ Instance Method Details
- - (Object) infer_spec_type_from_file_location!
+ #infer_spec_type_from_file_location! ⇒ Object
@@ -419,7 +423,7 @@
- - (Object) render_views(val)
+ #render_views(val) ⇒ Object
@@ -455,7 +459,7 @@
- - (Object) render_views=(val)
+ #render_views=(val) ⇒ Object
@@ -492,7 +496,7 @@
- - (Object) render_views?
+ #render_views? ⇒ Object
@@ -529,10 +533,10 @@
-
- Generated on Tue Oct 8 11:39:25 2019 by
+
+ Generated on Thu Jan 2 10:07:34 2020 by
yard
- 0.8.7.6 (ruby-2.6.5).
+ 0.9.22 (ruby-2.7.0).
+
-
+
\ No newline at end of file
diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/ActiveRecordConfiguration.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/ActiveRecordConfiguration.html
index 351613e66..3f93f82a2 100644
--- a/source/documentation/3.9/rspec-rails/RSpec/Rails/ActiveRecordConfiguration.html
+++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/ActiveRecordConfiguration.html
@@ -1,80 +1,75 @@
-
-
+
+
Class: RSpec::Rails::ActiveRecordConfiguration
- — Documentation by YARD 0.8.7.6
+ — Documentation by YARD 0.9.22
-
+
-
+
-
+
-
-
+
-
+
-
-
+
+
+
+
+
+
+
+
-
+
-
-
+
+
-
-
- Class: RSpec::Rails::ActiveRecordConfiguration
+ Class: RSpec::Rails::ActiveRecordConfiguration
-
-
+
- - Inherits:
- -
+
+ - Inherits:
+ -
Object
@@ -85,21 +80,25 @@
show all
-
-
+
+
+
-
-
- - Defined in:
- - lib/rspec/rails/active_record.rb
+
-
-
+
+
+
+ - Defined in:
+ - lib/rspec/rails/active_record.rb
+
+
+
Overview
@@ -123,10 +122,10 @@ Overview
-
- Generated on Tue Oct 8 11:39:26 2019 by
+
+ Generated on Thu Jan 2 10:07:35 2020 by
yard
- 0.8.7.6 (ruby-2.6.5).
+ 0.9.22 (ruby-2.7.0).
+
-
+
\ No newline at end of file
diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/ChannelExampleGroup.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/ChannelExampleGroup.html
new file mode 100644
index 000000000..461c3dc14
--- /dev/null
+++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/ChannelExampleGroup.html
@@ -0,0 +1,490 @@
+
+
+
+
+
+ Module: RSpec::Rails::ChannelExampleGroup
+
+ — Documentation by YARD 0.9.22
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Module: RSpec::Rails::ChannelExampleGroup
+
+
+
+
+
+
+
+
+
+
+ - Extended by:
+ - ActiveSupport::Concern
+
+
+
+
+
+ - Includes:
+ - ActionCable::Channel::TestCase::Behavior, ActionCable::Connection::TestCase::Behavior, RailsExampleGroup
+
+
+
+
+
+
+
+
+ - Defined in:
+ - lib/rspec/rails/example/channel_example_group.rb,
+ lib/rspec/rails/example/channel_example_group.rb
+
+
+
+
+
+Overview
+
+ Container module for channel spec functionality. It is only available if
+ActionCable has been loaded before it.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Instance Method Summary
+ collapse
+
+
+
+
+ -
+
+
+ #have_rejected_connection ⇒ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Checks that the connection attempt has been rejected.
+
+
+
+
+
+ -
+
+
+ #have_stream_for(object) ⇒ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Checks that the channel has been subscribed to a stream for the given model.
+
+
+
+
+
+ -
+
+
+ #have_stream_from(stream) ⇒ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Checks that the channel has been subscribed to the given stream.
+
+
+
+
+
+ -
+
+
+ #have_streams ⇒ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Checks that the subscription is subscribed to at least one stream.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Instance Method Details
+
+
+
+
+
+ #have_rejected_connection ⇒ Object
+
+
+
+
+
+
+
+ Checks that the connection attempt has been rejected.
+
+
+
+
+
+
+
+ Examples:
+
+
+ expect { connect }.to have_rejected_connection
+
+
+
+
+
+
+
+
+
+
+58
+59
+60
+
+
+ # File 'lib/rspec/rails/example/channel_example_group.rb', line 58
+
+def have_rejected_connection
+ raise_error(::ActionCable::Connection::Authorization::UnauthorizedError)
+end
+
+
+
+
+
+
+
+
+ #have_stream_for(object) ⇒ Object
+
+
+
+
+
+
+
+ Checks that the channel has been subscribed to a stream for the given model
+
+
+
+
+
+
+
+ Examples:
+
+
+ expect(subscription).to have_stream_for(user)
+
+
+
+
+
+
+
+
+
+
+86
+87
+88
+89
+
+
+ # File 'lib/rspec/rails/example/channel_example_group.rb', line 86
+
+def have_stream_for(object)
+ check_subscribed!
+ RSpec::Rails::Matchers::ActionCable::HaveStream.new(broadcasting_for(object))
+end
+
+
+
+
+
+
+
+
+ #have_stream_from(stream) ⇒ Object
+
+
+
+
+
+
+
+ Checks that the channel has been subscribed to the given stream
+
+
+
+
+
+
+
+ Examples:
+
+
+ expect(subscription).to have_stream_from("chat_1")
+
+
+
+
+
+
+
+
+
+
+76
+77
+78
+79
+80
+
+
+ # File 'lib/rspec/rails/example/channel_example_group.rb', line 76
+
+def have_stream_from(stream)
+ check_subscribed!
+
+ RSpec::Rails::Matchers::ActionCable::HaveStream.new(stream)
+end
+
+
+
+
+
+
+
+
+ #have_streams ⇒ Object
+
+
+
+
+
+
+
+ Checks that the subscription is subscribed to at least one stream.
+
+
+
+
+
+
+
+ Examples:
+
+
+ expect(subscription).to have_streams
+
+
+
+
+
+
+
+
+
+
+66
+67
+68
+69
+70
+
+
+ # File 'lib/rspec/rails/example/channel_example_group.rb', line 66
+
+def have_streams
+ check_subscribed!
+
+ RSpec::Rails::Matchers::ActionCable::HaveStream.new
+end
+
+
+
+
+
+
+
+
+
+
+ Generated on Thu Jan 2 10:07:35 2020 by
+ yard
+ 0.9.22 (ruby-2.7.0).
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/Configuration.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/Configuration.html
index 6c6964d68..d8990cc58 100644
--- a/source/documentation/3.9/rspec-rails/RSpec/Rails/Configuration.html
+++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/Configuration.html
@@ -1,80 +1,75 @@
-
-
+
+
Class: RSpec::Rails::Configuration
- — Documentation by YARD 0.8.7.6
+ — Documentation by YARD 0.9.22
-
+
-
+
-
+
-
-
+
-
+
-
-
+
+
+
+
+
+
+
+
-
+
-
-
+
+
-
-
- Class: RSpec::Rails::Configuration
+ Class: RSpec::Rails::Configuration
-
-
+
- - Inherits:
- -
+
+ - Inherits:
+ -
Object
@@ -85,21 +80,25 @@
show all
-
-
+
+
+
-
-
- - Defined in:
- - lib/rspec/rails/configuration.rb
+
-
-
+
+
+
+ - Defined in:
+ - lib/rspec/rails/configuration.rb
+
+
+
Overview
@@ -123,10 +122,10 @@ Overview
-
- Generated on Tue Oct 8 11:39:26 2019 by
+
+ Generated on Thu Jan 2 10:07:35 2020 by
yard
- 0.8.7.6 (ruby-2.6.5).
+ 0.9.22 (ruby-2.7.0).
+
-
+
\ No newline at end of file
diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/ControllerExampleGroup.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/ControllerExampleGroup.html
index f785fc3fb..917762c19 100644
--- a/source/documentation/3.9/rspec-rails/RSpec/Rails/ControllerExampleGroup.html
+++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/ControllerExampleGroup.html
@@ -1,100 +1,100 @@
-
-
+
+
Module: RSpec::Rails::ControllerExampleGroup
- — Documentation by YARD 0.8.7.6
+ — Documentation by YARD 0.9.22
-
+
-
+
-
+
-
-
+
-
+
-
-
+
+
+
+
+
+
+
+
-
+
-
-
-
-
+
+
- Module: RSpec::Rails::ControllerExampleGroup
+ Module: RSpec::Rails::ControllerExampleGroup
+
+
-
-
- - Extended by:
- - ActiveSupport::Concern
-
-
+
+ - Extended by:
+ - ActiveSupport::Concern
+
-
- - Includes:
- - ActionController::TestCase::Behavior, AssertionDelegator.new(
+
+
+
+ - Includes:
+ - ActionController::TestCase::Behavior, AssertionDelegator.new(
ActionDispatch::Assertions::RoutingAssertions
), Matchers::RedirectTo, Matchers::RenderTemplate, Matchers::RoutingMatchers, RailsExampleGroup, ViewRendering
-
-
+
+
- - Defined in:
- - lib/rspec/rails/example/controller_example_group.rb
+
+
+
+ - Defined in:
+ - lib/rspec/rails/example/controller_example_group.rb
+
-
-
+
Overview
@@ -117,19 +117,16 @@ Overview
- Constant Summary
-
-
- Instance Attribute Summary (collapse)
+ Instance Attribute Summary collapse
-
- - (Object) controller
+ #controller ⇒ Object
@@ -157,7 +154,7 @@
Instance Attribute Summary (collap
-
- - (Object) routes
+ #routes ⇒ Object
@@ -190,7 +187,7 @@
Instance Attribute Summary (collap
Instance Method Summary
- (collapse)
+ collapse
@@ -198,7 +195,7 @@
-
- - (Object) bypass_rescue
+ #bypass_rescue ⇒ Object
@@ -221,7 +218,7 @@
-
- - (Object) method_missing(method, *args, &block)
+ #method_missing(method, *args, &block) ⇒ Object
@@ -339,7 +336,7 @@
Dynamic Method Handling
- - (Object) method_missing(method, *args, &block)
+ #method_missing(method, *args, &block) ⇒ Object
@@ -395,7 +392,7 @@ Instance Attribute Details
- - (Object) controller (readonly)
+ #controller ⇒ Object (readonly)
@@ -437,7 +434,7 @@
- - (Object) routes
+ #routes ⇒ Object
@@ -484,7 +481,7 @@ Instance Method Details
- - (Object) bypass_rescue
+ #bypass_rescue ⇒ Object
@@ -513,7 +510,7 @@
expect do
bypass_rescue
- get :show, :id => profile.id + 1
+ get :show, id: profile.id + 1
end.to raise_error(/403 Forbidden/)
end
end
@@ -546,10 +543,10 @@
-
- Generated on Tue Oct 8 11:39:26 2019 by
+
+ Generated on Thu Jan 2 10:07:35 2020 by
yard
- 0.8.7.6 (ruby-2.6.5).
+ 0.9.22 (ruby-2.7.0).
+
-
+
\ No newline at end of file
diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/ControllerExampleGroup/ClassMethods.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/ControllerExampleGroup/ClassMethods.html
index 5224bef89..5b0123024 100644
--- a/source/documentation/3.9/rspec-rails/RSpec/Rails/ControllerExampleGroup/ClassMethods.html
+++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/ControllerExampleGroup/ClassMethods.html
@@ -1,90 +1,88 @@
-
-
+
+
Module: RSpec::Rails::ControllerExampleGroup::ClassMethods
- — Documentation by YARD 0.8.7.6
+ — Documentation by YARD 0.9.22
-
+
-
+
-
+
-
-
+
-
+
-
-
+
+
+
+
+
+
+
+
-
+
-
-
+
+
-
-
- Module: RSpec::Rails::ControllerExampleGroup::ClassMethods
+ Module: RSpec::Rails::ControllerExampleGroup::ClassMethods
+
+
-
-
-
+
- - Defined in:
- - lib/rspec/rails/example/controller_example_group.rb
+
+
+
+ - Defined in:
+ - lib/rspec/rails/example/controller_example_group.rb
+
-
-
+
Overview
@@ -106,7 +104,7 @@ Overview
Instance Method Summary
- (collapse)
+ collapse
@@ -114,7 +112,7 @@
-
- - (Object) controller(base_class = nil, &body)
+ #controller(base_class = nil, &body) ⇒ Object
@@ -137,7 +135,7 @@
-
- - (Object) routes
+ #routes ⇒ Object
@@ -169,7 +167,7 @@
Instance Method Details
- - (Object) controller(base_class = nil, &body)
+ #controller(base_class = nil, &body) ⇒ Object
@@ -288,7 +286,7 @@
# File 'lib/rspec/rails/example/controller_example_group.rb', line 61
def controller(base_class = nil, &body)
- if RSpec.configuration.infer_base_class_for_anonymous_controllers?
+ if RSpec.configuration.infer_base_class_for_anonymous_controllers?
base_class ||= controller_class
end
base_class ||= defined?(ApplicationController) ? ApplicationController : ActionController::Base
@@ -323,9 +321,9 @@
self.routes = ActionDispatch::Routing::RouteSet.new.tap do |r|
r.draw do
resources resource_name,
- :as => resource_as,
- :module => resource_module,
- :path => resource_path
+ as: resource_as,
+ module: resource_module,
+ path: resource_path
end
end
end
@@ -343,7 +341,7 @@
- - (Object) routes
+ #routes ⇒ Object
@@ -401,10 +399,10 @@
-
- Generated on Tue Oct 8 11:39:26 2019 by
+
+ Generated on Thu Jan 2 10:07:35 2020 by
yard
- 0.8.7.6 (ruby-2.6.5).
+ 0.9.22 (ruby-2.7.0).
+
-
+
\ No newline at end of file
diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/FeatureExampleGroup.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/FeatureExampleGroup.html
index fbe788e54..e852b4596 100644
--- a/source/documentation/3.9/rspec-rails/RSpec/Rails/FeatureExampleGroup.html
+++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/FeatureExampleGroup.html
@@ -1,98 +1,98 @@
-
-
+
+
Module: RSpec::Rails::FeatureExampleGroup
- — Documentation by YARD 0.8.7.6
+ — Documentation by YARD 0.9.22
-
+
-
+
-
+
-
-
+
-
+
-
-
+
+
+
+
+
+
+
+
-
+
-
-
+
+
-
-
- Module: RSpec::Rails::FeatureExampleGroup
+ Module: RSpec::Rails::FeatureExampleGroup
+
+
-
-
- - Extended by:
- - ActiveSupport::Concern
-
-
+
+ - Extended by:
+ - ActiveSupport::Concern
+
-
- - Includes:
- - RailsExampleGroup
-
-
+
+ - Includes:
+ - RailsExampleGroup
+
- - Defined in:
- - lib/rspec/rails/example/feature_example_group.rb
-
-
+
+
+
+
+
+ - Defined in:
+ - lib/rspec/rails/example/feature_example_group.rb
+
+
+
Overview
@@ -105,8 +105,12 @@ Overview
- Constant Summary
+
+ Constant Summary
+ collapse
+
+
- DEFAULT_HOST =
@@ -136,7 +140,7 @@
Constant Summary
Instance Method Summary
- (collapse)
+ collapse
@@ -144,7 +148,7 @@
-
- - (Object) visit
+ #visit ⇒ Object
@@ -213,7 +217,7 @@
Instance Method Details
- - (Object) visit
+ #visit ⇒ Object
@@ -237,16 +241,16 @@
+25
+26
27
28
29
30
-31
-32
-33
+31
- # File 'lib/rspec/rails/example/feature_example_group.rb', line 27
+ # File 'lib/rspec/rails/example/feature_example_group.rb', line 25
def visit(*)
if defined?(super)
@@ -264,10 +268,10 @@
-
- Generated on Tue Oct 8 11:39:26 2019 by
+
+ Generated on Thu Jan 2 10:07:35 2020 by
yard
- 0.8.7.6 (ruby-2.6.5).
+ 0.9.22 (ruby-2.7.0).
+
-
+
\ No newline at end of file
diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/HelperExampleGroup.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/HelperExampleGroup.html
index 632594f66..06c9dd987 100644
--- a/source/documentation/3.9/rspec-rails/RSpec/Rails/HelperExampleGroup.html
+++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/HelperExampleGroup.html
@@ -1,98 +1,98 @@
-
-
+
+
Module: RSpec::Rails::HelperExampleGroup
- — Documentation by YARD 0.8.7.6
+ — Documentation by YARD 0.9.22
-
+
-
+
-
+
-
-
+
-
+
-
-
+
+
+
+
+
+
+
+
-
+
-
-
+
+
-
-
- Module: RSpec::Rails::HelperExampleGroup
+ Module: RSpec::Rails::HelperExampleGroup
+
+
-
-
- - Extended by:
- - ActiveSupport::Concern
-
-
+
+ - Extended by:
+ - ActiveSupport::Concern
+
+
-
- - Includes:
- - ActionView::TestCase::Behavior, RailsExampleGroup, ViewAssigns
-
-
+
+ - Includes:
+ - ActionView::TestCase::Behavior, RailsExampleGroup, ViewAssigns
+
- - Defined in:
- - lib/rspec/rails/example/helper_example_group.rb
+
+
+
-
-
+
+ - Defined in:
+ - lib/rspec/rails/example/helper_example_group.rb
+
+
+
Overview
@@ -114,7 +114,7 @@ Overview
Instance Method Summary
- (collapse)
+ collapse
@@ -122,7 +122,7 @@
-
- - (Object) helper
+ #helper ⇒ Object
@@ -203,7 +203,7 @@
Instance Method Details
- - (Object) helper
+ #helper ⇒ Object
@@ -226,15 +226,15 @@
-29
-30
-31
-32
-33
-34
+22
+23
+24
+25
+26
+27
- # File 'lib/rspec/rails/example/helper_example_group.rb', line 29
+ # File 'lib/rspec/rails/example/helper_example_group.rb', line 22
def helper
_view.tap do |v|
@@ -251,10 +251,10 @@
-
- Generated on Tue Oct 8 11:39:26 2019 by
+
+ Generated on Thu Jan 2 10:07:34 2020 by
yard
- 0.8.7.6 (ruby-2.6.5).
+ 0.9.22 (ruby-2.7.0).
+
-
+
\ No newline at end of file
diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/JobExampleGroup.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/JobExampleGroup.html
index 95af7a8ef..de650f3a2 100644
--- a/source/documentation/3.9/rspec-rails/RSpec/Rails/JobExampleGroup.html
+++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/JobExampleGroup.html
@@ -1,100 +1,100 @@
-
-
+
+
Module: RSpec::Rails::JobExampleGroup
- — Documentation by YARD 0.8.7.6
+ — Documentation by YARD 0.9.22
-
+
-
+
-
+
-
-
+
-
+
-
-
+
+
+
+
+
+
+
+
-
+
-
-
+
+
-
-
- Module: RSpec::Rails::JobExampleGroup
+ Module: RSpec::Rails::JobExampleGroup
+
+
-
-
- - Extended by:
- - ActiveSupport::Concern
-
-
+
+ - Extended by:
+ - ActiveSupport::Concern
+
+
-
- - Includes:
- - RailsExampleGroup
-
-
+
+ - Includes:
+ - RailsExampleGroup
+
- - Defined in:
- - lib/rspec/rails/example/job_example_group.rb,
+
+
+
+
+
+ - Defined in:
+ - lib/rspec/rails/example/job_example_group.rb,
lib/rspec/rails/example/job_example_group.rb
+
-
-
+
Overview
@@ -154,10 +154,10 @@ Overview
-
- Generated on Tue Oct 8 11:39:26 2019 by
+
+ Generated on Thu Jan 2 10:07:34 2020 by
yard
- 0.8.7.6 (ruby-2.6.5).
+ 0.9.22 (ruby-2.7.0).
+
-
+
\ No newline at end of file
diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/MailboxExampleGroup.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/MailboxExampleGroup.html
new file mode 100644
index 000000000..1fb191be7
--- /dev/null
+++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/MailboxExampleGroup.html
@@ -0,0 +1,467 @@
+
+
+
+
+
+ Module: RSpec::Rails::MailboxExampleGroup
+
+ — Documentation by YARD 0.9.22
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Module: RSpec::Rails::MailboxExampleGroup
+
+
+
+
+
+
+
+
+
+
+ - Extended by:
+ - ActionMailbox::TestHelper, ActiveSupport::Concern
+
+
+
+
+
+
+
+
+
+
+ - Defined in:
+ - lib/rspec/rails/example/mailbox_example_group.rb
+
+
+
+
+Overview
+
+ Container module for mailbox spec functionality.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Instance Method Summary
+ collapse
+
+
+
+
+ -
+
+
+ #have_been_delivered ⇒ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Passes if the inbound email was delivered.
+
+
+
+
+
+ -
+
+
+ #have_bounced ⇒ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Passes if the inbound email bounced during processing.
+
+
+
+
+
+ -
+
+
+ #have_failed ⇒ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Passes if the inbound email failed to process.
+
+
+
+
+
+ -
+
+
+ #process(message) ⇒ ActionMaibox::InboundMessage
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Process an inbound email message directly, bypassing routing.
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Instance Method Details
+
+
+
+
+
+ #have_been_delivered ⇒ Object
+
+
+
+
+
+
+
+ Passes if the inbound email was delivered
+
+
+
+
+
+
+
+ Examples:
+
+
+ inbound_email = process(args)
+expect(inbound_email).to have_been_delivered
+
+
+
+
+
+
+
+
+
+
+44
+45
+46
+
+
+ # File 'lib/rspec/rails/example/mailbox_example_group.rb', line 44
+
+def have_been_delivered
+ satisfy('have been delivered', &:delivered?)
+end
+
+
+
+
+
+
+
+
+ #have_bounced ⇒ Object
+
+
+
+
+
+
+
+ Passes if the inbound email bounced during processing
+
+
+
+
+
+
+
+ Examples:
+
+
+ inbound_email = process(args)
+expect(inbound_email).to have_bounced
+
+
+
+
+
+
+
+
+
+
+54
+55
+56
+
+
+ # File 'lib/rspec/rails/example/mailbox_example_group.rb', line 54
+
+def have_bounced
+ satisfy('have bounced', &:bounced?)
+end
+
+
+
+
+
+
+
+
+ #have_failed ⇒ Object
+
+
+
+
+
+
+
+ Passes if the inbound email failed to process
+
+
+
+
+
+
+
+ Examples:
+
+
+ inbound_email = process(args)
+expect(inbound_email).to have_failed
+
+
+
+
+
+
+
+
+
+
+64
+65
+66
+
+
+ # File 'lib/rspec/rails/example/mailbox_example_group.rb', line 64
+
+def have_failed
+ satisfy('have failed', &:failed?)
+end
+
+
+
+
+
+
+
+
+ #process(message) ⇒ ActionMaibox::InboundMessage
+
+
+
+
+
+
+
+ Process an inbound email message directly, bypassing routing.
+
+
+
+
+
+ Parameters:
+
+
+ -
+
+ message
+
+
+ (Hash, Mail::Message)
+
+
+
+ —
+
a mail message or hash of
+attributes used to build one
+
+
+
+
+
+
+Returns:
+
+
+ -
+
+
+ (ActionMaibox::InboundMessage)
+
+
+
+
+
+
+
+
+
+
+
+
+
+73
+74
+75
+76
+77
+
+
+ # File 'lib/rspec/rails/example/mailbox_example_group.rb', line 73
+
+def process(message)
+ MailboxExampleGroup.create_inbound_email(message).tap do |mail|
+ self.class.mailbox_class.receive(mail)
+ end
+end
+
+
+
+
+
+
+
+
+
+
+ Generated on Thu Jan 2 10:07:35 2020 by
+ yard
+ 0.9.22 (ruby-2.7.0).
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/MailerExampleGroup.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/MailerExampleGroup.html
index 2dd48b554..06d3c7d27 100644
--- a/source/documentation/3.9/rspec-rails/RSpec/Rails/MailerExampleGroup.html
+++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/MailerExampleGroup.html
@@ -1,105 +1,104 @@
-
-
+
+
Module: RSpec::Rails::MailerExampleGroup
- — Documentation by YARD 0.8.7.6
+ — Documentation by YARD 0.9.22
-
+
-
+
-
+
-
-
+
-
+
-
-
+
+
+
+
+
+
+
+
-
+
-
-
+
+
-
-
- Module: RSpec::Rails::MailerExampleGroup
+ Module: RSpec::Rails::MailerExampleGroup
+
+
-
-
- - Extended by:
- - ActiveSupport::Concern
-
-
+
+ - Extended by:
+ - ActiveSupport::Concern
+
+
-
- - Includes:
- - ActionMailer::TestCase::Behavior, RailsExampleGroup
-
-
+
+ - Includes:
+ - ActionMailer::TestCase::Behavior, RailsExampleGroup
+
- - Defined in:
- - lib/rspec/rails/example/mailer_example_group.rb,
+
+
+
+
+
+ - Defined in:
+ - lib/rspec/rails/example/mailer_example_group.rb,
lib/rspec/rails/example/mailer_example_group.rb
+
-
-
+
Overview
- Container module for mailer spec functionality. It is only available if
-ActionMailer has been loaded before it.
+ Container module for mailer spec functionality.
@@ -166,10 +165,10 @@ Overview
-
- Generated on Tue Oct 8 11:39:26 2019 by
+
+ Generated on Thu Jan 2 10:07:34 2020 by
yard
- 0.8.7.6 (ruby-2.6.5).
+ 0.9.22 (ruby-2.7.0).
+
-
+
\ No newline at end of file
diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/MailerExampleGroup/ClassMethods.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/MailerExampleGroup/ClassMethods.html
index 3075d6328..50a195db9 100644
--- a/source/documentation/3.9/rspec-rails/RSpec/Rails/MailerExampleGroup/ClassMethods.html
+++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/MailerExampleGroup/ClassMethods.html
@@ -1,90 +1,88 @@
-
-
+
+
Module: RSpec::Rails::MailerExampleGroup::ClassMethods
- — Documentation by YARD 0.8.7.6
+ — Documentation by YARD 0.9.22
-
+
-
+
-
+
-
-
+
-
+
-
-
+
+
+
+
+
+
+
+
-
+
-
-
+
+
-
-
- Module: RSpec::Rails::MailerExampleGroup::ClassMethods
+ Module: RSpec::Rails::MailerExampleGroup::ClassMethods
+
+
-
-
-
+
- - Defined in:
- - lib/rspec/rails/example/mailer_example_group.rb
+
+
+
+ - Defined in:
+ - lib/rspec/rails/example/mailer_example_group.rb
+
-
-
+
Overview
@@ -106,7 +104,7 @@ Overview
Instance Method Summary
- (collapse)
+ collapse
@@ -114,7 +112,7 @@
-
- - (Object) mailer_class
+ #mailer_class ⇒ Object
@@ -146,7 +144,7 @@
Instance Method Details
- - (Object) mailer_class
+ #mailer_class ⇒ Object
@@ -187,10 +185,10 @@
-
- Generated on Tue Oct 8 11:39:26 2019 by
+
+ Generated on Thu Jan 2 10:07:34 2020 by
yard
- 0.8.7.6 (ruby-2.6.5).
+ 0.9.22 (ruby-2.7.0).
+
-
+
\ No newline at end of file
diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers.html
index 3bb05f13e..f224aa467 100644
--- a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers.html
+++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers.html
@@ -1,92 +1,90 @@
-
-
+
+
Module: RSpec::Rails::Matchers
- — Documentation by YARD 0.8.7.6
+ — Documentation by YARD 0.9.22
-
+
-
+
-
+
-
-
+
-
+
-
-
+
+
+
+
+
+
+
+
-
+
-
-
-
-
+
+
- Module: RSpec::Rails::Matchers
+ Module: RSpec::Rails::Matchers
+
+
-
-
-
+
+
+
- - Defined in:
- - lib/rspec/rails/matchers.rb,
- lib/rspec/rails/matchers/be_valid.rb,
lib/rspec/rails/matchers/be_a_new.rb,
lib/rspec/rails/matchers/active_job.rb,
lib/rspec/rails/matchers/redirect_to.rb,
lib/rspec/rails/matchers/base_matcher.rb,
lib/rspec/rails/matchers/have_rendered.rb,
lib/rspec/rails/matchers/be_new_record.rb,
lib/rspec/rails/matchers/routing_matchers.rb,
lib/rspec/rails/matchers/have_http_status.rb,
lib/rspec/rails/matchers/have_enqueued_mail.rb
+
+ - Defined in:
+ - lib/rspec/rails/matchers.rb,
+ lib/rspec/rails/matchers/be_a_new.rb,
lib/rspec/rails/matchers/be_valid.rb,
lib/rspec/rails/matchers/active_job.rb,
lib/rspec/rails/matchers/redirect_to.rb,
lib/rspec/rails/matchers/action_cable.rb,
lib/rspec/rails/matchers/base_matcher.rb,
lib/rspec/rails/matchers/be_new_record.rb,
lib/rspec/rails/matchers/have_rendered.rb,
lib/rspec/rails/matchers/action_mailbox.rb,
lib/rspec/rails/matchers/have_http_status.rb,
lib/rspec/rails/matchers/routing_matchers.rb,
lib/rspec/rails/matchers/have_enqueued_mail.rb,
lib/rspec/rails/matchers/action_cable/have_streams.rb,
lib/rspec/rails/matchers/action_cable/have_broadcasted_to.rb
+
-
-
+
Overview
@@ -102,7 +100,7 @@ Overview
- Modules: ActiveJob, HaveHttpStatus, RedirectTo, RenderTemplate, RoutingMatchers
+ Modules: ActionCable, ActionMailbox, ActiveJob, HaveHttpStatus, RedirectTo, RenderTemplate, RoutingMatchers
@@ -120,7 +118,7 @@
Overview
Instance Method Summary
- (collapse)
+ collapse
@@ -128,7 +126,7 @@
-
- - (Object) be_a_new(model_class)
+ #be_a_new(model_class) ⇒ Object
@@ -151,7 +149,7 @@
-
- - (Object) be_new_record
+ #be_new_record ⇒ Object
@@ -174,7 +172,7 @@
-
- - (Object) be_valid(*args)
+ #be_valid(*args) ⇒ Object
@@ -197,7 +195,7 @@
-
- - (Object) have_been_enqueued
+ #have_been_enqueued ⇒ Object
@@ -220,7 +218,55 @@
-
- - (Object) have_enqueued_job(job = nil)
+ #have_been_performed ⇒ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Passes if a job has been performed.
+
+
+
+
+
+ -
+
+
+ #have_broadcasted_to(target = nil) ⇒ Object
+
+
+
+ (also: #broadcast_to)
+
+
+
+
+
+
+
+
+
+
+
+
Passes if a message has been sent to a stream/object inside a block.
+
+
+
+
+
+ -
+
+
+ #have_enqueued_job(job = nil) ⇒ Object
@@ -245,7 +291,7 @@
-
- - (Object) have_enqueued_mail(mailer_class, mail_method_name)
+ #have_enqueued_mail(mailer_class = nil, mail_method_name = nil) ⇒ Object
@@ -270,7 +316,7 @@
-
- - (Object) have_http_status(target)
+ #have_http_status(target) ⇒ Object
@@ -287,6 +333,54 @@
Passes if response
has a matching HTTP status code.
+
+
+
+ -
+
+
+ #have_performed_job(job = nil) ⇒ Object
+
+
+
+ (also: #perform_job)
+
+
+
+
+
+
+
+
+
+
+
+
Passes if a job has been performed inside block.
+
+
+
+
+
+ -
+
+
+ #receive_inbound_email(message) ⇒ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Passes if the given inbound email would be routed to the subject inbox.
+
+
@@ -302,7 +396,7 @@ Instance Method Details
- - (Object) be_a_new(model_class)
+ #be_a_new(model_class) ⇒ Object
@@ -349,7 +443,7 @@
# File 'lib/rspec/rails/matchers/be_a_new.rb', line 78
def be_a_new(model_class)
- BeANew.new(model_class)
+ BeANew.new(model_class)
end
@@ -359,7 +453,7 @@
- - (Object) be_new_record
+ #be_new_record ⇒ Object
@@ -398,7 +492,7 @@
# File 'lib/rspec/rails/matchers/be_new_record.rb', line 25
def be_new_record
- BeANewRecord.new
+ BeANewRecord.new
end
@@ -408,7 +502,7 @@
- - (Object) be_valid(*args)
+ #be_valid(*args) ⇒ Object
@@ -459,7 +553,7 @@
- - (Object) have_been_enqueued
+ #have_been_enqueued ⇒ Object
@@ -478,7 +572,7 @@
Examples:
- before { ActiveJob::Base.queue_adapter.enqueued_jobs.clear }
+ before { ActiveJob::Base.queue_adapter.enqueued_jobs.clear }
HeavyLiftingJob.perform_later
expect(HeavyLiftingJob).to have_been_enqueued
@@ -513,17 +607,175 @@
-303
-304
-305
-306
+351
+352
+353
+354
- # File 'lib/rspec/rails/matchers/active_job.rb', line 303
+ # File 'lib/rspec/rails/matchers/active_job.rb', line 351
def have_been_enqueued
check_active_job_adapter
- ActiveJob::HaveBeenEnqueued.new
+ ActiveJob::HaveBeenEnqueued.new
+end
+
+
+
+
+
+
+
+
+ #have_been_performed ⇒ Object
+
+
+
+
+
+
+
+ Passes if a job has been performed. May chain at_least, at_most or exactly to specify a number of times.
+
+
+
+
+
+
+
+ Examples:
+
+
+ before do
+ ActiveJob::Base.queue_adapter.performed_jobs.clear
+ ActiveJob::Base.queue_adapter.perform_enqueued_jobs = true
+ ActiveJob::Base.queue_adapter.perform_enqueued_at_jobs = true
+end
+
+HeavyLiftingJob.perform_later
+expect(HeavyLiftingJob).to have_been_performed
+
+HelloJob.perform_later
+HeavyLiftingJob.perform_later
+expect(HeavyLiftingJob).to have_been_performed.exactly(:once)
+
+3.times { HelloJob.perform_later }
+expect(HelloJob).to have_been_performed.at_least(2).times
+
+HelloJob.perform_later
+HeavyLiftingJob.perform_later
+expect(HelloJob).to have_been_performed
+expect(HeavyLiftingJob).to have_been_performed
+
+HelloJob.set(wait_until: Date.tomorrow.noon, queue: "low").perform_later(42)
+expect(HelloJob).to have_been_performed.with(42).on_queue("low").at(Date.tomorrow.noon)
+
+
+
+
+
+
+
+
+
+
+424
+425
+426
+427
+
+
+ # File 'lib/rspec/rails/matchers/active_job.rb', line 424
+
+def have_been_performed
+ check_active_job_adapter
+ ActiveJob::HaveBeenPerformed.new
+end
+
+
+
+
+
+
+
+
+ #have_broadcasted_to(target = nil) ⇒ Object
+
+
+
+ Also known as:
+ broadcast_to
+
+
+
+
+
+
+ Passes if a message has been sent to a stream/object inside a block.
+May chain at_least
, at_most
or exactly
to specify a number of times.
+To specify channel from which message has been broadcasted to object use from_channel
.
+
+
+
+
+
+
+
+ Examples:
+
+
+ expect {
+ ActionCable.server.broadcast "messages", text: 'Hi!'
+}.to have_broadcasted_to("messages")
+
+expect {
+ SomeChannel.broadcast_to(user)
+}.to have_broadcasted_to(user).from_channel(SomeChannel)
+
+# Using alias
+expect {
+ ActionCable.server.broadcast "messages", text: 'Hi!'
+}.to broadcast_to("messages")
+
+expect {
+ ActionCable.server.broadcast "messages", text: 'Hi!'
+ ActionCable.server.broadcast "all", text: 'Hi!'
+}.to have_broadcasted_to("messages").exactly(:once)
+
+expect {
+ 3.times { ActionCable.server.broadcast "messages", text: 'Hi!' }
+}.to have_broadcasted_to("messages").at_least(2).times
+
+expect {
+ ActionCable.server.broadcast "messages", text: 'Hi!'
+}.to have_broadcasted_to("messages").at_most(:twice)
+
+expect {
+ ActionCable.server.broadcast "messages", text: 'Hi!'
+}.to have_broadcasted_to("messages").with(text: 'Hi!')
+
+
+
+
+
+
+
+
+
+
+48
+49
+50
+51
+52
+
+
+ # File 'lib/rspec/rails/matchers/action_cable.rb', line 48
+
+def have_broadcasted_to(target = nil)
+ check_action_cable_adapter
+
+ ActionCable::HaveBroadcastedTo.new(target, channel: described_class)
end
@@ -533,7 +785,7 @@
- - (Object) have_enqueued_job(job = nil)
+ #have_enqueued_job(job = nil) ⇒ Object
@@ -607,17 +859,17 @@
-268
-269
-270
-271
+316
+317
+318
+319
- # File 'lib/rspec/rails/matchers/active_job.rb', line 268
+ # File 'lib/rspec/rails/matchers/active_job.rb', line 316
def have_enqueued_job(job = nil)
check_active_job_adapter
- ActiveJob::HaveEnqueuedJob.new(job)
+ ActiveJob::HaveEnqueuedJob.new(job)
end
@@ -627,7 +879,7 @@
- - (Object) have_enqueued_mail(mailer_class, mail_method_name)
+ #have_enqueued_mail(mailer_class = nil, mail_method_name = nil) ⇒ Object
@@ -656,6 +908,14 @@
expect {
MyMailer.welcome(user).deliver_later
+}.to have_enqueued_mail
+
+expect {
+ MyMailer.welcome(user).deliver_later
+}.to have_enqueued_mail(MyMailer)
+
+expect {
+ MyMailer.welcome(user).deliver_later
}.to have_enqueued_mail(MyMailer, :welcome)
# Using alias
@@ -693,14 +953,14 @@
-166
-167
-168
+187
+188
+189
- # File 'lib/rspec/rails/matchers/have_enqueued_mail.rb', line 166
+ # File 'lib/rspec/rails/matchers/have_enqueued_mail.rb', line 187
-def have_enqueued_mail(mailer_class, mail_method_name)
+def have_enqueued_mail(mailer_class = nil, mail_method_name = nil)
HaveEnqueuedMail.new(mailer_class, mail_method_name)
end
@@ -711,7 +971,7 @@
- - (Object) have_http_status(target)
+ #have_http_status(target) ⇒ Object
@@ -792,31 +1052,177 @@
-375
-376
-377
-378
+378
+379
+380
+381
+382
- # File 'lib/rspec/rails/matchers/have_http_status.rb', line 375
+ # File 'lib/rspec/rails/matchers/have_http_status.rb', line 378
def have_http_status(target)
raise ArgumentError, "Invalid HTTP status: nil" unless target
- HaveHttpStatus.matcher_for_status(target)
+
+ HaveHttpStatus.matcher_for_status(target)
end
+
+
+
+ #have_performed_job(job = nil) ⇒ Object
+
+
+
+ Also known as:
+ perform_job
+
+
+
+
+
+
+ Passes if a job has been performed inside block. May chain at_least, at_most or exactly to specify a number of times.
+
+
+
+
+
+
+ Examples:
+
+
+ expect {
+ perform_jobs { HeavyLiftingJob.perform_later }
+}.to have_performed_job
+
+expect {
+ perform_jobs {
+ HelloJob.perform_later
+ HeavyLiftingJob.perform_later
+ }
+}.to have_performed_job(HelloJob).exactly(:once)
+
+expect {
+ perform_jobs { 3.times { HelloJob.perform_later } }
+}.to have_performed_job(HelloJob).at_least(2).times
+
+expect {
+ perform_jobs { HelloJob.perform_later }
+}.to have_performed_job(HelloJob).at_most(:twice)
+
+expect {
+ perform_jobs {
+ HelloJob.perform_later
+ HeavyLiftingJob.perform_later
+ }
+}.to have_performed_job(HelloJob).and have_performed_job(HeavyLiftingJob)
+
+expect {
+ perform_jobs {
+ HelloJob.set(wait_until: Date.tomorrow.noon, queue: "low").perform_later(42)
+ }
+}.to have_performed_job.with(42).on_queue("low").at(Date.tomorrow.noon)
+
+
+
+
+
+
+
+
+
+
+391
+392
+393
+394
+
+
+ # File 'lib/rspec/rails/matchers/active_job.rb', line 391
+
+def have_performed_job(job = nil)
+ check_active_job_adapter
+ ActiveJob::HavePerformedJob.new(job)
+end
+
+
+
+
+
+
+
+
+ #receive_inbound_email(message) ⇒ Object
+
+
+
+
+
+
+
+ Passes if the given inbound email would be routed to the subject inbox.
+
+
+
+
+ Parameters:
+
+
+ -
+
+ message
+
+
+ (Hash, Mail::Message)
+
+
+
+ —
+
a mail message or hash of
+attributes used to build one
+
+
+
+
-
- Generated on Tue Oct 8 11:39:25 2019 by
+
+
+
+
+
+
+
+59
+60
+61
+
+
+ # File 'lib/rspec/rails/matchers/action_mailbox.rb', line 59
+
+def receive_inbound_email(message)
+ ActionMailbox::ReceiveInboundEmail.new(message)
+end
+
+
+
+
+
+
+
+
+
+
+ Generated on Thu Jan 2 10:07:34 2020 by
yard
- 0.8.7.6 (ruby-2.6.5).
+ 0.9.22 (ruby-2.7.0).
+
-
+
\ No newline at end of file
diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/ActionCable.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/ActionCable.html
new file mode 100644
index 000000000..be289dae9
--- /dev/null
+++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/ActionCable.html
@@ -0,0 +1,143 @@
+
+
+
+
+
+ Module: RSpec::Rails::Matchers::ActionCable
+
+ — Documentation by YARD 0.9.22
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Module: RSpec::Rails::Matchers::ActionCable
+
+
+ Private
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Defined in:
+ - lib/rspec/rails/matchers/action_cable.rb,
+ lib/rspec/rails/matchers/action_cable/have_streams.rb,
lib/rspec/rails/matchers/action_cable/have_broadcasted_to.rb
+
+
+
+
+
+Overview
+
+
+ This module is part of a private API.
+ You should avoid using this module if possible, as it may be removed or be changed in the future.
+
+Namespace for various implementations of ActionCable features
+
+
+
+
+
+
+
+Defined Under Namespace
+
+
+
+
+
+ Classes: HaveStream
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Generated on Thu Jan 2 10:07:34 2020 by
+ yard
+ 0.9.22 (ruby-2.7.0).
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/ActionCable/HaveStream.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/ActionCable/HaveStream.html
new file mode 100644
index 000000000..060d40b77
--- /dev/null
+++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/ActionCable/HaveStream.html
@@ -0,0 +1,497 @@
+
+
+
+
+
+ Class: RSpec::Rails::Matchers::ActionCable::HaveStream
+
+ — Documentation by YARD 0.9.22
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Class: RSpec::Rails::Matchers::ActionCable::HaveStream
+
+
+ Private
+
+
+
+
+ - Inherits:
+ -
+ Matchers::BuiltIn::BaseMatcher
+
+
+ - Object
+
+ - Matchers::BuiltIn::BaseMatcher
+
+ - RSpec::Rails::Matchers::ActionCable::HaveStream
+
+
+ show all
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Defined in:
+ - lib/rspec/rails/matchers/action_cable/have_streams.rb
+
+
+
+
+Overview
+
+
+ This class is part of a private API.
+ You should avoid using this class if possible, as it may be removed or be changed in the future.
+
+Provides the implementation for have_stream
, have_stream_for
, and have_stream_from
.
+Not intended to be instantiated directly.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Instance Method Summary
+ collapse
+
+
+
+
+ -
+
+
+ #does_not_match?(subscription) ⇒ Boolean
+
+
+
+
+
+
+
+
+
+
+ private
+
+
+
+
+
+
+
+ -
+
+
+ #failure_message ⇒ String
+
+
+
+
+
+
+
+
+
+
+ private
+
+
+
+
+
+
+
+ -
+
+
+ #failure_message_when_negated ⇒ String
+
+
+
+
+
+
+
+
+
+
+ private
+
+
+
+
+
+
+
+ -
+
+
+ #matches?(subscription) ⇒ Boolean
+
+
+
+
+
+
+
+
+
+
+ private
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Instance Method Details
+
+
+
+
+
+ #does_not_match?(subscription) ⇒ Boolean
+
+
+
+
+
+
+
+
+ This method is part of a private API.
+ You should avoid using this method if possible, as it may be removed or be changed in the future.
+
+
+
+
+
+
+
+Returns:
+
+
+ -
+
+
+ (Boolean)
+
+
+
+
+
+
+
+
+
+
+
+
+
+31
+32
+33
+
+
+ # File 'lib/rspec/rails/matchers/action_cable/have_streams.rb', line 31
+
+def does_not_match?(subscription)
+ !match(subscription)
+end
+
+
+
+
+
+
+
+
+ #failure_message ⇒ String
+
+
+
+
+
+
+
+
+ This method is part of a private API.
+ You should avoid using this method if possible, as it may be removed or be changed in the future.
+
+
+
+
+
+
+
+Returns:
+
+
+ -
+
+
+ (String)
+
+
+
+
+
+
+
+
+
+
+
+
+
+11
+12
+13
+
+
+ # File 'lib/rspec/rails/matchers/action_cable/have_streams.rb', line 11
+
+def failure_message
+ "expected to have #{base_message}"
+end
+
+
+
+
+
+
+
+
+ #failure_message_when_negated ⇒ String
+
+
+
+
+
+
+
+
+ This method is part of a private API.
+ You should avoid using this method if possible, as it may be removed or be changed in the future.
+
+
+
+
+
+
+
+Returns:
+
+
+ -
+
+
+ (String)
+
+
+
+
+
+
+
+
+
+
+
+
+
+17
+18
+19
+
+
+ # File 'lib/rspec/rails/matchers/action_cable/have_streams.rb', line 17
+
+def failure_message_when_negated
+ "expected not to have #{base_message}"
+end
+
+
+
+
+
+
+
+
+ #matches?(subscription) ⇒ Boolean
+
+
+
+
+
+
+
+
+ This method is part of a private API.
+ You should avoid using this method if possible, as it may be removed or be changed in the future.
+
+
+
+
+
+
+
+Returns:
+
+
+ -
+
+
+ (Boolean)
+
+
+
+
+
+
+Raises:
+
+
+ -
+
+
+ (ArgumentError)
+
+
+
+
+
+
+
+
+
+
+
+
+
+23
+24
+25
+26
+27
+
+
+ # File 'lib/rspec/rails/matchers/action_cable/have_streams.rb', line 23
+
+def matches?(subscription)
+ raise(ArgumentError, "have_streams is used for negated expectations only") if no_expected?
+
+ match(subscription)
+end
+
+
+
+
+
+
+
+
+
+
+ Generated on Thu Jan 2 10:07:35 2020 by
+ yard
+ 0.9.22 (ruby-2.7.0).
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/ActionMailbox.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/ActionMailbox.html
new file mode 100644
index 000000000..05ac9cdb7
--- /dev/null
+++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/ActionMailbox.html
@@ -0,0 +1,131 @@
+
+
+
+
+
+ Module: RSpec::Rails::Matchers::ActionMailbox
+
+ — Documentation by YARD 0.9.22
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Module: RSpec::Rails::Matchers::ActionMailbox
+
+
+ Private
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Defined in:
+ - lib/rspec/rails/matchers/action_mailbox.rb
+
+
+
+
+Overview
+
+
+ This module is part of a private API.
+ You should avoid using this module if possible, as it may be removed or be changed in the future.
+
+Namespace for various implementations of ActionMailbox features
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Generated on Thu Jan 2 10:07:34 2020 by
+ yard
+ 0.9.22 (ruby-2.7.0).
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/ActiveJob.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/ActiveJob.html
index 69f769702..c37fea36f 100644
--- a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/ActiveJob.html
+++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/ActiveJob.html
@@ -1,90 +1,88 @@
-
-
+
+
Module: RSpec::Rails::Matchers::ActiveJob
- — Documentation by YARD 0.8.7.6
+ — Documentation by YARD 0.9.22
-
+
-
+
-
+
-
-
+
-
+
-
-
+
+
+
+
+
+
+
+
-
+
-
-
-
-
+
+
- Module: RSpec::Rails::Matchers::ActiveJob
+ Module: RSpec::Rails::Matchers::ActiveJob
Private
+
+
-
-
-
+
+
+
- - Defined in:
- - lib/rspec/rails/matchers/active_job.rb
+
+ - Defined in:
+ - lib/rspec/rails/matchers/active_job.rb
+
-
-
+
Overview
@@ -111,10 +109,10 @@ Overview
-
- Generated on Tue Oct 8 11:39:25 2019 by
+
+ Generated on Thu Jan 2 10:07:34 2020 by
yard
- 0.8.7.6 (ruby-2.6.5).
+ 0.9.22 (ruby-2.7.0).
+
-
+
\ No newline at end of file
diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/BaseMatcher.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/BaseMatcher.html
index f198b3dc7..6aa034faf 100644
--- a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/BaseMatcher.html
+++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/BaseMatcher.html
@@ -1,80 +1,75 @@
-
-
+
+
Class: RSpec::Rails::Matchers::BaseMatcher
- — Documentation by YARD 0.8.7.6
+ — Documentation by YARD 0.9.22
-
+
-
+
-
+
-
-
+
-
+
-
-
+
+
+
+
+
+
+
+
-
+
-
-
+
+
-
-
- Class: RSpec::Rails::Matchers::BaseMatcher
+ Class: RSpec::Rails::Matchers::BaseMatcher
-
-
+
- - Inherits:
- -
+
+ - Inherits:
+ -
Object
@@ -85,25 +80,30 @@
show all
-
-
+
+
+
-
-
- - Includes:
- - Matchers::Composable, DefaultFailureMessages
-
-
+
+ - Includes:
+ - Matchers::Composable, DefaultFailureMessages
+
- - Defined in:
- - lib/rspec/rails/matchers/base_matcher.rb
-
-
+
+
+
+
+
+ - Defined in:
+ - lib/rspec/rails/matchers/base_matcher.rb
+
+
+
Overview
@@ -130,8 +130,12 @@ Defined Under Namespace
- Constant Summary
+
+ Constant Summary
+ collapse
+
+
- UNDEFINED =
@@ -166,7 +170,7 @@
Constant Summary
Instance Method Summary
- (collapse)
+ collapse
@@ -174,7 +178,7 @@
-
- - (String) description
+ #description ⇒ String
@@ -197,7 +201,7 @@
-
- - (Boolean) diffable?
+ #diffable? ⇒ Boolean
@@ -220,7 +224,7 @@
-
- - (Boolean) expects_call_stack_jump?
+ #expects_call_stack_jump? ⇒ Boolean
@@ -242,7 +246,7 @@
-
- - (BaseMatcher) initialize(expected = UNDEFINED)
+ #initialize(expected = UNDEFINED) ⇒ BaseMatcher
@@ -267,7 +271,7 @@
-
- - (Object) match_unless_raises(*exceptions)
+ #match_unless_raises(*exceptions) ⇒ Object
@@ -290,7 +294,7 @@
-
- - (Boolean) matches?(actual)
+ #matches?(actual) ⇒ Boolean
@@ -313,7 +317,7 @@
-
- - (Boolean) supports_block_expectations?
+ #supports_block_expectations? ⇒ Boolean
@@ -360,7 +364,7 @@
Constructor Details
- - (BaseMatcher) initialize(expected = UNDEFINED)
+ #initialize(expected = UNDEFINED) ⇒ BaseMatcher
@@ -368,7 +372,7 @@
- Returns a new instance of BaseMatcher
+ Returns a new instance of BaseMatcher.
@@ -389,8 +393,8 @@
# File 'lib/rspec/rails/matchers/base_matcher.rb', line 19
-def initialize(expected = UNDEFINED)
- @expected = expected unless UNDEFINED.equal?(expected)
+def initialize(expected = UNDEFINED)
+ @expected = expected unless UNDEFINED.equal?(expected)
end
@@ -407,7 +411,7 @@ Instance Method Details
- - (String) description
+ #description ⇒ String
@@ -456,8 +460,8 @@
# File 'lib/rspec/rails/matchers/base_matcher.rb', line 51
def description
- desc = RSpec::Matchers::EnglishPhrasing.split_words(self.class.matcher_name)
- desc << RSpec::Matchers::EnglishPhrasing.list(@expected) if defined?(@expected)
+ desc = RSpec::Matchers::EnglishPhrasing.split_words(self.class.matcher_name)
+ desc << RSpec::Matchers::EnglishPhrasing.list(@expected) if defined?(@expected)
desc
end
@@ -468,7 +472,7 @@
- - (Boolean) diffable?
+ #diffable? ⇒ Boolean
@@ -526,7 +530,7 @@
- - (Boolean) expects_call_stack_jump?
+ #expects_call_stack_jump? ⇒ Boolean
@@ -582,7 +586,7 @@
- - (Object) match_unless_raises(*exceptions)
+ #match_unless_raises(*exceptions) ⇒ Object
@@ -642,7 +646,7 @@
- - (Boolean) matches?(actual)
+ #matches?(actual) ⇒ Boolean
@@ -703,7 +707,7 @@
- - (Boolean) supports_block_expectations?
+ #supports_block_expectations? ⇒ Boolean
@@ -763,10 +767,10 @@
-
- Generated on Tue Oct 8 11:39:26 2019 by
+
+ Generated on Thu Jan 2 10:07:35 2020 by
yard
- 0.8.7.6 (ruby-2.6.5).
+ 0.9.22 (ruby-2.7.0).
+
-
+
\ No newline at end of file
diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/BaseMatcher/DefaultFailureMessages.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/BaseMatcher/DefaultFailureMessages.html
index d9337b3a9..e78cae4ba 100644
--- a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/BaseMatcher/DefaultFailureMessages.html
+++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/BaseMatcher/DefaultFailureMessages.html
@@ -1,94 +1,93 @@
-
-
+
+
Module: RSpec::Rails::Matchers::BaseMatcher::DefaultFailureMessages
- — Documentation by YARD 0.8.7.6
+ — Documentation by YARD 0.9.22
-
+
-
+
-
+
-
-
+
-
+
-
-
+
+
+
+
+
+
+
+
-
+
-
-
-
-
+
+
- Module: RSpec::Rails::Matchers::BaseMatcher::DefaultFailureMessages
+ Module: RSpec::Rails::Matchers::BaseMatcher::DefaultFailureMessages
Private
+
+
-
-
-
- - Included in:
- - RSpec::Rails::Matchers::BaseMatcher
-
+
+
+ - Included in:
+ - RSpec::Rails::Matchers::BaseMatcher
+
- - Defined in:
- - lib/rspec/rails/matchers/base_matcher.rb
+
+
+
+ - Defined in:
+ - lib/rspec/rails/matchers/base_matcher.rb
+
-
-
+
Overview
@@ -114,7 +113,7 @@ Overview
Instance Method Summary
- (collapse)
+ collapse
@@ -122,7 +121,7 @@
-
- - (String) failure_message
+ #failure_message ⇒ String
@@ -145,7 +144,7 @@
-
- - (String) failure_message_when_negated
+ #failure_message_when_negated ⇒ String
@@ -177,7 +176,7 @@
Instance Method Details
- - (String) failure_message
+ #failure_message ⇒ String
@@ -218,12 +217,12 @@
-158
-159
-160
+151
+152
+153
- # File 'lib/rspec/rails/matchers/base_matcher.rb', line 158
+ # File 'lib/rspec/rails/matchers/base_matcher.rb', line 151
def failure_message
"expected #{description_of @actual} to #{description}".dup
@@ -236,7 +235,7 @@
- - (String) failure_message_when_negated
+ #failure_message_when_negated ⇒ String
@@ -277,12 +276,12 @@
-167
-168
-169
+160
+161
+162
- # File 'lib/rspec/rails/matchers/base_matcher.rb', line 167
+ # File 'lib/rspec/rails/matchers/base_matcher.rb', line 160
def failure_message_when_negated
"expected #{description_of @actual} not to #{description}".dup
@@ -296,10 +295,10 @@
-
- Generated on Tue Oct 8 11:39:26 2019 by
+
+ Generated on Thu Jan 2 10:07:34 2020 by
yard
- 0.8.7.6 (ruby-2.6.5).
+ 0.9.22 (ruby-2.7.0).
+
-
+
\ No newline at end of file
diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/BeANew.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/BeANew.html
index c431f993f..78284ee25 100644
--- a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/BeANew.html
+++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/BeANew.html
@@ -1,80 +1,75 @@
-
-
+
+
Class: RSpec::Rails::Matchers::BeANew
- — Documentation by YARD 0.8.7.6
+ — Documentation by YARD 0.9.22
-
+
-
+
-
+
-
-
+
-
+
-
-
+
+
+
+
+
+
+
+
-
+
-
-
+
+
-
-
- Class: RSpec::Rails::Matchers::BeANew
+ Class: RSpec::Rails::Matchers::BeANew
Private
-
-
+
- - Inherits:
- -
+
+ - Inherits:
+ -
BaseMatcher
@@ -87,21 +82,25 @@
show all
-
-
+
+
+
-
-
- - Defined in:
- - lib/rspec/rails/matchers/be_a_new.rb
+
+
+
+
+
+ - Defined in:
+ - lib/rspec/rails/matchers/be_a_new.rb
+
-
-
+
Overview
@@ -125,9 +124,6 @@ Overview
- Constant Summary
-
-
Constant Summary
@@ -143,7 +139,7 @@ Constants inherited
Instance Method Summary
- (collapse)
+ collapse
@@ -151,7 +147,7 @@
-
- - (Object) with(expected_attributes)
+ #with(expected_attributes) ⇒ Object
@@ -211,7 +207,7 @@
Instance Method Details
- - (Object) with(expected_attributes)
+ #with(expected_attributes) ⇒ Object
@@ -260,10 +256,10 @@
-
- Generated on Tue Oct 8 11:39:26 2019 by
+
+ Generated on Thu Jan 2 10:07:35 2020 by
yard
- 0.8.7.6 (ruby-2.6.5).
+ 0.9.22 (ruby-2.7.0).
+
-
+
\ No newline at end of file
diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/HaveHttpStatus.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/HaveHttpStatus.html
index 437638dce..21fad668c 100644
--- a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/HaveHttpStatus.html
+++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/HaveHttpStatus.html
@@ -1,94 +1,93 @@
-
-
+
+
Module: RSpec::Rails::Matchers::HaveHttpStatus
- — Documentation by YARD 0.8.7.6
+ — Documentation by YARD 0.9.22
-
+
-
+
-
+
-
-
+
-
+
-
-
+
+
+
+
+
+
+
+
-
+
-
-
+
+
-
-
- Module: RSpec::Rails::Matchers::HaveHttpStatus
+ Module: RSpec::Rails::Matchers::HaveHttpStatus
Private
+
+
-
-
-
- - Included in:
- - GenericStatus, NumericCode, SymbolicStatus
-
+
+
+
+ - Included in:
+ - GenericStatus, NumericCode, SymbolicStatus
+
+
- - Defined in:
- - lib/rspec/rails/matchers/have_http_status.rb
+
+ - Defined in:
+ - lib/rspec/rails/matchers/have_http_status.rb
+
-
-
+
Overview
@@ -124,7 +123,7 @@ Overview
Class Method Summary
- (collapse)
+ collapse
@@ -132,7 +131,7 @@
-
- + (ActionDispatch::TestResponse) as_test_response(obj)
+ .as_test_response(obj) ⇒ ActionDispatch::TestResponse
@@ -155,7 +154,7 @@
-
- + (Object) matcher_for_status(target)
+ .matcher_for_status(target) ⇒ Object
@@ -179,7 +178,7 @@
Instance Method Summary
- (collapse)
+ collapse
@@ -187,7 +186,7 @@
-
- - (String?) invalid_response_type_message
+ #invalid_response_type_message ⇒ String?
@@ -219,7 +218,7 @@
Class Method Details
- + (ActionDispatch::TestResponse) as_test_response(obj)
+ .as_test_response(obj) ⇒ ActionDispatch::TestResponse
@@ -332,7 +331,7 @@
- + (Object) matcher_for_status(target)
+ .matcher_for_status(target) ⇒ Object
@@ -409,12 +408,12 @@
# File 'lib/rspec/rails/matchers/have_http_status.rb', line 19
def self.matcher_for_status(target)
- if GenericStatus.valid_statuses.include?(target)
- GenericStatus.new(target)
+ if GenericStatus.valid_statuses.include?(target)
+ GenericStatus.new(target)
elsif Symbol === target
- SymbolicStatus.new(target)
+ SymbolicStatus.new(target)
else
- NumericCode.new(target)
+ NumericCode.new(target)
end
end
@@ -431,7 +430,7 @@ Instance Method Details
- - (String?) invalid_response_type_message
+ #invalid_response_type_message ⇒ String?
@@ -444,7 +443,7 @@
You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a formatted failure message if
-@invalid_response
is present, nil
otherwise
+@invalid_response
is present, nil
otherwise.
@@ -480,13 +479,15 @@
61
62
63
-64
+64
+65
# File 'lib/rspec/rails/matchers/have_http_status.rb', line 60
def invalid_response_type_message
return unless @invalid_response
+
"expected a response object, but an instance of " \
"#{@invalid_response.class} was received"
end
@@ -499,10 +500,10 @@
-
- Generated on Tue Oct 8 11:39:26 2019 by
+
+ Generated on Thu Jan 2 10:07:34 2020 by
yard
- 0.8.7.6 (ruby-2.6.5).
+ 0.9.22 (ruby-2.7.0).
+
-
+
\ No newline at end of file
diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/HaveHttpStatus/GenericStatus.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/HaveHttpStatus/GenericStatus.html
index 5c3682b63..789329f60 100644
--- a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/HaveHttpStatus/GenericStatus.html
+++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/HaveHttpStatus/GenericStatus.html
@@ -1,80 +1,75 @@
-
-
+
+
Class: RSpec::Rails::Matchers::HaveHttpStatus::GenericStatus
- — Documentation by YARD 0.8.7.6
+ — Documentation by YARD 0.9.22
-
+
-
+
-
+
-
-
+
-
+
-
-
+
+
+
+
+
+
+
+
-
+
-
-
-
-
+
+
- Class: RSpec::Rails::Matchers::HaveHttpStatus::GenericStatus
+ Class: RSpec::Rails::Matchers::HaveHttpStatus::GenericStatus
Private
-
-
+
- - Inherits:
- -
+
+ - Inherits:
+ -
BaseMatcher
@@ -87,25 +82,30 @@
show all
-
-
+
+
+
-
-
- - Includes:
- - RSpec::Rails::Matchers::HaveHttpStatus
-
-
+
+ - Includes:
+ - RSpec::Rails::Matchers::HaveHttpStatus
+
+
+
+
+
+
- - Defined in:
- - lib/rspec/rails/matchers/have_http_status.rb
+
+ - Defined in:
+ - lib/rspec/rails/matchers/have_http_status.rb
+
-
-
+
Overview
@@ -145,9 +145,6 @@ Overview
- Constant Summary
-
-
Constant Summary
@@ -163,7 +160,7 @@ Constants inherited
Class Method Summary
- (collapse)
+ collapse
@@ -171,7 +168,7 @@
-
- + (Array<Symbol>) valid_statuses
+ .valid_statuses ⇒ Array<Symbol>
@@ -195,7 +192,7 @@
Instance Method Summary
- (collapse)
+ collapse
@@ -203,7 +200,7 @@
-
- - (String) description
+ #description ⇒ String
@@ -225,7 +222,7 @@
-
- - (String) failure_message
+ #failure_message ⇒ String
@@ -248,7 +245,7 @@
-
- - (String) failure_message_when_negated
+ #failure_message_when_negated ⇒ String
@@ -271,7 +268,7 @@
-
- - (GenericStatus) initialize(type)
+ #initialize(type) ⇒ GenericStatus
@@ -296,7 +293,7 @@
-
- - (Boolean) matches?(response)
+ #matches?(response) ⇒ Boolean
@@ -360,7 +357,7 @@
Constructor Details
- - (GenericStatus) initialize(type)
+ #initialize(type) ⇒ GenericStatus
@@ -372,7 +369,7 @@
This method is part of a private API.
You should avoid using this method if possible, as it may be removed or be changed in the future.
-
Returns a new instance of GenericStatus
+Returns a new instance of GenericStatus.
@@ -386,22 +383,24 @@
-253
-254
255
256
257
258
259
-260
+260
+261
+262
+263
- # File 'lib/rspec/rails/matchers/have_http_status.rb', line 253
+ # File 'lib/rspec/rails/matchers/have_http_status.rb', line 255
def initialize(type)
unless self.class.valid_statuses.include?(type)
raise ArgumentError, "Invalid generic HTTP status: #{type.inspect}"
end
+
@expected = type
@actual = nil
@invalid_response = nil
@@ -421,7 +420,7 @@ Class Method Details
- + (Array<Symbol>) valid_statuses
+ .valid_statuses ⇒ Array<Symbol>
@@ -434,7 +433,7 @@
You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns of status codes which represent a HTTP status
-code "group"
+code "group".
@@ -473,16 +472,16 @@
-245
-246
247
248
249
250
-251
+251
+252
+253
- # File 'lib/rspec/rails/matchers/have_http_status.rb', line 245
+ # File 'lib/rspec/rails/matchers/have_http_status.rb', line 247
def self.valid_statuses
[
@@ -505,7 +504,7 @@ Instance Method Details
- - (String) description
+ #description ⇒ String
@@ -543,12 +542,12 @@
-274
-275
-276
+277
+278
+279
- # File 'lib/rspec/rails/matchers/have_http_status.rb', line 274
+ # File 'lib/rspec/rails/matchers/have_http_status.rb', line 277
def description
"respond with #{type_message}"
@@ -561,7 +560,7 @@
- - (String) failure_message
+ #failure_message ⇒ String
@@ -573,7 +572,7 @@
This method is part of a private API.
You should avoid using this method if possible, as it may be removed or be changed in the future.
-
Returns explaining why the match failed
+Returns explaining why the match failed.
@@ -604,13 +603,13 @@
-279
-280
-281
-282
+282
+283
+284
+285
- # File 'lib/rspec/rails/matchers/have_http_status.rb', line 279
+ # File 'lib/rspec/rails/matchers/have_http_status.rb', line 282
def failure_message
invalid_response_type_message ||
@@ -624,7 +623,7 @@
- - (String) failure_message_when_negated
+ #failure_message_when_negated ⇒ String
@@ -636,7 +635,7 @@
This method is part of a private API.
You should avoid using this method if possible, as it may be removed or be changed in the future.
-
Returns explaining why the match failed
+Returns explaining why the match failed.
@@ -667,13 +666,13 @@
-285
-286
-287
-288
+288
+289
+290
+291
- # File 'lib/rspec/rails/matchers/have_http_status.rb', line 285
+ # File 'lib/rspec/rails/matchers/have_http_status.rb', line 288
def failure_message_when_negated
invalid_response_type_message ||
@@ -687,7 +686,7 @@
- - (Boolean) matches?(response)
+ #matches?(response) ⇒ Boolean
@@ -700,7 +699,7 @@
You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns true
if Rack's associated numeric HTTP code matched
-the response
code or the named response status
+the response
code or the named response status.
@@ -732,17 +731,17 @@
-264
-265
-266
267
268
269
270
-271
+271
+272
+273
+274
- # File 'lib/rspec/rails/matchers/have_http_status.rb', line 264
+ # File 'lib/rspec/rails/matchers/have_http_status.rb', line 267
def matches?(response)
test_response = as_test_response(response)
@@ -761,10 +760,10 @@
-
- Generated on Tue Oct 8 11:39:26 2019 by
+
+ Generated on Thu Jan 2 10:07:35 2020 by
yard
- 0.8.7.6 (ruby-2.6.5).
+ 0.9.22 (ruby-2.7.0).
+
-
+
\ No newline at end of file
diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/HaveHttpStatus/NumericCode.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/HaveHttpStatus/NumericCode.html
index 3bb67e584..2d12d8a85 100644
--- a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/HaveHttpStatus/NumericCode.html
+++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/HaveHttpStatus/NumericCode.html
@@ -1,80 +1,75 @@
-
-
+
+
Class: RSpec::Rails::Matchers::HaveHttpStatus::NumericCode
- — Documentation by YARD 0.8.7.6
+ — Documentation by YARD 0.9.22
-
+
-
+
-
+
-
-
+
-
+
-
-
+
+
+
+
+
+
+
+
-
+
-
-
+
+
-
-
- Class: RSpec::Rails::Matchers::HaveHttpStatus::NumericCode
+ Class: RSpec::Rails::Matchers::HaveHttpStatus::NumericCode
Private
-
-
+
- - Inherits:
- -
+
+ - Inherits:
+ -
BaseMatcher
@@ -87,25 +82,30 @@
show all
-
-
+
+
+
-
-
- - Includes:
- - RSpec::Rails::Matchers::HaveHttpStatus
-
-
+
+ - Includes:
+ - RSpec::Rails::Matchers::HaveHttpStatus
+
- - Defined in:
- - lib/rspec/rails/matchers/have_http_status.rb
-
-
+
+
+
+
+
+ - Defined in:
+ - lib/rspec/rails/matchers/have_http_status.rb
+
+
+
Overview
@@ -140,9 +140,6 @@ Overview
- Constant Summary
-
-
Constant Summary
@@ -158,7 +155,7 @@ Constants inherited
Instance Method Summary
- (collapse)
+ collapse
@@ -166,7 +163,7 @@
-
- - (String) description
+ #description ⇒ String
@@ -188,7 +185,7 @@
-
- - (String) failure_message
+ #failure_message ⇒ String
@@ -211,7 +208,7 @@
-
- - (String) failure_message_when_negated
+ #failure_message_when_negated ⇒ String
@@ -234,7 +231,7 @@
-
- - (NumericCode) initialize(code)
+ #initialize(code) ⇒ NumericCode
@@ -259,7 +256,7 @@
-
- - (Boolean) matches?(response)
+ #matches?(response) ⇒ Boolean
@@ -323,7 +320,7 @@
Constructor Details
- - (NumericCode) initialize(code)
+ #initialize(code) ⇒ NumericCode
@@ -335,7 +332,7 @@
This method is part of a private API.
You should avoid using this method if possible, as it may be removed or be changed in the future.
-
Returns a new instance of NumericCode
+Returns a new instance of NumericCode.
@@ -349,14 +346,14 @@
-79
80
81
82
-83
+83
+84
- # File 'lib/rspec/rails/matchers/have_http_status.rb', line 79
+ # File 'lib/rspec/rails/matchers/have_http_status.rb', line 80
def initialize(code)
@expected = code.to_i
@@ -378,7 +375,7 @@ Instance Method Details
- - (String) description
+ #description ⇒ String
@@ -416,12 +413,12 @@
-97
98
-99
+99
+100
- # File 'lib/rspec/rails/matchers/have_http_status.rb', line 97
+ # File 'lib/rspec/rails/matchers/have_http_status.rb', line 98
def description
"respond with numeric status code #{expected}"
@@ -434,7 +431,7 @@
- - (String) failure_message
+ #failure_message ⇒ String
@@ -446,7 +443,7 @@
This method is part of a private API.
You should avoid using this method if possible, as it may be removed or be changed in the future.
-
Returns explaining why the match failed
+Returns explaining why the match failed.
@@ -477,14 +474,14 @@
-102
103
104
105
-106
+106
+107
- # File 'lib/rspec/rails/matchers/have_http_status.rb', line 102
+ # File 'lib/rspec/rails/matchers/have_http_status.rb', line 103
def failure_message
invalid_response_type_message ||
@@ -499,7 +496,7 @@
- - (String) failure_message_when_negated
+ #failure_message_when_negated ⇒ String
@@ -511,7 +508,7 @@
This method is part of a private API.
You should avoid using this method if possible, as it may be removed or be changed in the future.
-
Returns explaining why the match failed
+Returns explaining why the match failed.
@@ -542,14 +539,14 @@
-109
110
111
112
-113
+113
+114
- # File 'lib/rspec/rails/matchers/have_http_status.rb', line 109
+ # File 'lib/rspec/rails/matchers/have_http_status.rb', line 110
def failure_message_when_negated
invalid_response_type_message ||
@@ -564,7 +561,7 @@
- - (Boolean) matches?(response)
+ #matches?(response) ⇒ Boolean
@@ -576,7 +573,7 @@
This method is part of a private API.
You should avoid using this method if possible, as it may be removed or be changed in the future.
-
Returns true
if the numeric code matched the response
code
+Returns true
if the numeric code matched the response
code.
@@ -626,17 +623,17 @@
-87
88
89
90
91
92
93
-94
+94
+95
- # File 'lib/rspec/rails/matchers/have_http_status.rb', line 87
+ # File 'lib/rspec/rails/matchers/have_http_status.rb', line 88
def matches?(response)
test_response = as_test_response(response)
@@ -655,10 +652,10 @@
-
- Generated on Tue Oct 8 11:39:26 2019 by
+
+ Generated on Thu Jan 2 10:07:35 2020 by
yard
- 0.8.7.6 (ruby-2.6.5).
+ 0.9.22 (ruby-2.7.0).
+
-
+
\ No newline at end of file
diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/HaveHttpStatus/SymbolicStatus.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/HaveHttpStatus/SymbolicStatus.html
index 13a57aaba..b9ec7303b 100644
--- a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/HaveHttpStatus/SymbolicStatus.html
+++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/HaveHttpStatus/SymbolicStatus.html
@@ -1,80 +1,75 @@
-
-
+
+
Class: RSpec::Rails::Matchers::HaveHttpStatus::SymbolicStatus
- — Documentation by YARD 0.8.7.6
+ — Documentation by YARD 0.9.22
-
+
-
+
-
+
-
-
+
-
+
-
-
+
+
+
+
+
+
+
+
-
+
-
-
+
+
-
-
- Class: RSpec::Rails::Matchers::HaveHttpStatus::SymbolicStatus
+ Class: RSpec::Rails::Matchers::HaveHttpStatus::SymbolicStatus
Private
-
-
+
- - Inherits:
- -
+
+ - Inherits:
+ -
BaseMatcher
@@ -87,25 +82,30 @@
show all
-
-
+
+
+
+
-
-
- - Includes:
- - RSpec::Rails::Matchers::HaveHttpStatus
-
-
+
+ - Includes:
+ - RSpec::Rails::Matchers::HaveHttpStatus
+
+
+
+
+
- - Defined in:
- - lib/rspec/rails/matchers/have_http_status.rb
+
+ - Defined in:
+ - lib/rspec/rails/matchers/have_http_status.rb
+
-
-
+
Overview
@@ -142,9 +142,6 @@ Overview
- Constant Summary
-
-
Constant Summary
@@ -160,7 +157,7 @@ Constants inherited
Instance Method Summary
- (collapse)
+ collapse
@@ -168,7 +165,7 @@
-
- - (String) description
+ #description ⇒ String
@@ -190,7 +187,7 @@
-
- - (String) failure_message
+ #failure_message ⇒ String
@@ -213,7 +210,7 @@
-
- - (String) failure_message_when_negated
+ #failure_message_when_negated ⇒ String
@@ -236,7 +233,7 @@
-
- - (SymbolicStatus) initialize(status)
+ #initialize(status) ⇒ SymbolicStatus
@@ -261,7 +258,7 @@
-
- - (Boolean) matches?(response)
+ #matches?(response) ⇒ Boolean
@@ -325,7 +322,7 @@
Constructor Details
- - (SymbolicStatus) initialize(status)
+ #initialize(status) ⇒ SymbolicStatus
@@ -337,7 +334,7 @@
This method is part of a private API.
You should avoid using this method if possible, as it may be removed or be changed in the future.
-
Returns a new instance of SymbolicStatus
+Returns a new instance of SymbolicStatus.
@@ -351,15 +348,15 @@
-130
131
132
133
134
-135
+135
+136
- # File 'lib/rspec/rails/matchers/have_http_status.rb', line 130
+ # File 'lib/rspec/rails/matchers/have_http_status.rb', line 131
def initialize(status)
@expected_status = status
@@ -382,7 +379,7 @@ Instance Method Details
- - (String) description
+ #description ⇒ String
@@ -420,12 +417,12 @@
-150
151
-152
+152
+153
- # File 'lib/rspec/rails/matchers/have_http_status.rb', line 150
+ # File 'lib/rspec/rails/matchers/have_http_status.rb', line 151
def description
"respond with status code #{pp_expected}"
@@ -438,7 +435,7 @@
- - (String) failure_message
+ #failure_message ⇒ String
@@ -450,7 +447,7 @@
This method is part of a private API.
You should avoid using this method if possible, as it may be removed or be changed in the future.
-
Returns explaining why the match failed
+Returns explaining why the match failed.
@@ -481,14 +478,14 @@
-155
156
157
158
-159
+159
+160
- # File 'lib/rspec/rails/matchers/have_http_status.rb', line 155
+ # File 'lib/rspec/rails/matchers/have_http_status.rb', line 156
def failure_message
invalid_response_type_message ||
@@ -503,7 +500,7 @@
- - (String) failure_message_when_negated
+ #failure_message_when_negated ⇒ String
@@ -515,7 +512,7 @@
This method is part of a private API.
You should avoid using this method if possible, as it may be removed or be changed in the future.
-
Returns explaining why the match failed
+Returns explaining why the match failed.
@@ -546,14 +543,14 @@
-162
163
164
165
-166
+166
+167
- # File 'lib/rspec/rails/matchers/have_http_status.rb', line 162
+ # File 'lib/rspec/rails/matchers/have_http_status.rb', line 163
def failure_message_when_negated
invalid_response_type_message ||
@@ -568,7 +565,7 @@
- - (Boolean) matches?(response)
+ #matches?(response) ⇒ Boolean
@@ -581,7 +578,7 @@
You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns true
if Rack's associated numeric HTTP code matched
-the response
code
+the response
code.
@@ -632,17 +629,17 @@
-140
141
142
143
144
145
146
-147
+147
+148
- # File 'lib/rspec/rails/matchers/have_http_status.rb', line 140
+ # File 'lib/rspec/rails/matchers/have_http_status.rb', line 141
def matches?(response)
test_response = as_test_response(response)
@@ -661,10 +658,10 @@
-
- Generated on Tue Oct 8 11:39:26 2019 by
+
+ Generated on Thu Jan 2 10:07:35 2020 by
yard
- 0.8.7.6 (ruby-2.6.5).
+ 0.9.22 (ruby-2.7.0).
+
-
+
\ No newline at end of file
diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/RedirectTo.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/RedirectTo.html
index be461f3f1..de2d755b3 100644
--- a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/RedirectTo.html
+++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/RedirectTo.html
@@ -1,94 +1,93 @@
-
-
+
+
Module: RSpec::Rails::Matchers::RedirectTo
- — Documentation by YARD 0.8.7.6
+ — Documentation by YARD 0.9.22
-
+
-
+
-
+
-
-
+
-
+
-
-
+
+
+
+
+
+
+
+
-
+
-
-
-
-
+
+
- Module: RSpec::Rails::Matchers::RedirectTo
+ Module: RSpec::Rails::Matchers::RedirectTo
+
+
-
-
-
- - Included in:
- - ControllerExampleGroup, RequestExampleGroup, SystemExampleGroup
-
+
+
+ - Included in:
+ - ControllerExampleGroup, RequestExampleGroup, SystemExampleGroup
+
- - Defined in:
- - lib/rspec/rails/matchers/redirect_to.rb
+
+
+
+ - Defined in:
+ - lib/rspec/rails/matchers/redirect_to.rb
+
-
-
+
Overview
@@ -110,7 +109,7 @@ Overview
Instance Method Summary
- (collapse)
+ collapse
@@ -118,7 +117,7 @@
-
- - (Object) redirect_to(target)
+ #redirect_to(target) ⇒ Object
@@ -150,7 +149,7 @@
Instance Method Details
- - (Object) redirect_to(target)
+ #redirect_to(target) ⇒ Object
@@ -199,10 +198,10 @@
-
- Generated on Tue Oct 8 11:39:25 2019 by
+
+ Generated on Thu Jan 2 10:07:34 2020 by
yard
- 0.8.7.6 (ruby-2.6.5).
+ 0.9.22 (ruby-2.7.0).
+
-
+
\ No newline at end of file
diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/RenderTemplate.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/RenderTemplate.html
index 584d1c31f..c56c90482 100644
--- a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/RenderTemplate.html
+++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/RenderTemplate.html
@@ -1,94 +1,93 @@
-
-
+
+
Module: RSpec::Rails::Matchers::RenderTemplate
- — Documentation by YARD 0.8.7.6
+ — Documentation by YARD 0.9.22
-
+
-
+
-
+
-
-
+
-
+
-
-
+
+
+
+
+
+
+
+
-
+
-
-
-
-
+
+
- Module: RSpec::Rails::Matchers::RenderTemplate
+ Module: RSpec::Rails::Matchers::RenderTemplate
+
+
-
-
-
- - Included in:
- - ControllerExampleGroup, RequestExampleGroup, SystemExampleGroup, ViewExampleGroup
-
+
+
+ - Included in:
+ - ControllerExampleGroup, RequestExampleGroup, SystemExampleGroup, ViewExampleGroup
+
- - Defined in:
- - lib/rspec/rails/matchers/have_rendered.rb
+
+
+
+ - Defined in:
+ - lib/rspec/rails/matchers/have_rendered.rb
+
-
-
+
Overview
@@ -110,7 +109,7 @@ Overview
Instance Method Summary
- (collapse)
+ collapse
@@ -118,7 +117,7 @@
-
- - (Object) have_rendered(options, message = nil)
+ #have_rendered(options, message = nil) ⇒ Object
@@ -152,7 +151,7 @@
Instance Method Details
- - (Object) have_rendered(options, message = nil)
+ #have_rendered(options, message = nil) ⇒ Object
@@ -186,12 +185,12 @@
-55
56
-57
+57
+58
- # File 'lib/rspec/rails/matchers/have_rendered.rb', line 55
+ # File 'lib/rspec/rails/matchers/have_rendered.rb', line 56
def have_rendered(options, message = nil)
RenderTemplateMatcher.new(self, options, message)
@@ -205,10 +204,10 @@
-
- Generated on Tue Oct 8 11:39:25 2019 by
+
+ Generated on Thu Jan 2 10:07:34 2020 by
yard
- 0.8.7.6 (ruby-2.6.5).
+ 0.9.22 (ruby-2.7.0).
+
-
+
\ No newline at end of file
diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/RoutingMatchers.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/RoutingMatchers.html
index ae69469ef..446b921ca 100644
--- a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/RoutingMatchers.html
+++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/RoutingMatchers.html
@@ -1,98 +1,98 @@
-
-
+
+
Module: RSpec::Rails::Matchers::RoutingMatchers
- — Documentation by YARD 0.8.7.6
+ — Documentation by YARD 0.9.22
-
+
-
+
-
+
-
-
+
-
+
-
-
+
+
+
+
+
+
+
+
-
+
-
-
+
+
-
-
- Module: RSpec::Rails::Matchers::RoutingMatchers
+ Module: RSpec::Rails::Matchers::RoutingMatchers
+
+
-
-
- - Extended by:
- - Matchers::DSL
-
-
+
+ - Extended by:
+ - Matchers::DSL
+
-
- - Included in:
- - ControllerExampleGroup, RoutingExampleGroup
-
+
- - Defined in:
- - lib/rspec/rails/matchers/routing_matchers.rb
+
+ - Included in:
+ - ControllerExampleGroup, RoutingExampleGroup
+
-
-
+
+
+
+ - Defined in:
+ - lib/rspec/rails/matchers/routing_matchers.rb
+
+
+
Overview
@@ -124,7 +124,7 @@ Overview
Instance Method Summary
- (collapse)
+ collapse
@@ -132,7 +132,7 @@
-
- - (Object) be_routable
+ #be_routable ⇒ Object
@@ -155,7 +155,7 @@
-
- - (Object) route_to(*expected)
+ #route_to(*expected) ⇒ Object
@@ -188,7 +188,7 @@
Instance Method Details
- - (Object) be_routable
+ #be_routable ⇒ Object
@@ -212,9 +212,9 @@
You can use route helpers provided by rspec-rails.
- expect(:get => "/a/path").to be_routable
-expect(:post => "/another/path").to be_routable
-expect(:put => "/yet/another/path").to be_routable
+ expect(get: "/a/path").to be_routable
+expect(post: "/another/path").to be_routable
+expect(put: "/yet/another/path").to be_routable
@@ -243,7 +243,7 @@
- - (Object) route_to(*expected)
+ #route_to(*expected) ⇒ Object
@@ -264,12 +264,12 @@
-expect(:get => "/things/special").to route_to(
- :controller => "things",
- :action => "special"
+expect(get: "/things/special").to route_to(
+ controller: "things",
+ action: "special"
)
-expect(:get => "/things/special").to route_to("things#special")
+expect(get: "/things/special").to route_to("things#special")
@@ -277,7 +277,7 @@
See Also:
- - http://api.rubyonrails.org/classes/ActionDispatch/Assertions/RoutingAssertions.html#method-i-assert_recognizes
+ - https://api.rubyonrails.org/classes/ActionDispatch/Assertions/RoutingAssertions.html#method-i-assert_recognizes
@@ -306,10 +306,10 @@
-
- Generated on Tue Oct 8 11:39:25 2019 by
+
+ Generated on Thu Jan 2 10:07:34 2020 by
yard
- 0.8.7.6 (ruby-2.6.5).
+ 0.9.22 (ruby-2.7.0).
+
-
+
\ No newline at end of file
diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/RoutingMatchers/RouteHelpers.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/RoutingMatchers/RouteHelpers.html
index f2c98902f..a488b2fe5 100644
--- a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/RoutingMatchers/RouteHelpers.html
+++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/RoutingMatchers/RouteHelpers.html
@@ -1,94 +1,93 @@
-
-
+
+
Module: RSpec::Rails::Matchers::RoutingMatchers::RouteHelpers
- — Documentation by YARD 0.8.7.6
+ — Documentation by YARD 0.9.22
-
+
-
+
-
+
-
-
+
-
+
-
-
+
+
+
+
+
+
+
+
-
+
-
-
-
-
+
+
- Module: RSpec::Rails::Matchers::RoutingMatchers::RouteHelpers
+ Module: RSpec::Rails::Matchers::RoutingMatchers::RouteHelpers
+
+
-
-
-
- - Included in:
- - RoutingExampleGroup
-
+
+
+ - Included in:
+ - RoutingExampleGroup
+
- - Defined in:
- - lib/rspec/rails/matchers/routing_matchers.rb
+
+
+
+ - Defined in:
+ - lib/rspec/rails/matchers/routing_matchers.rb
+
-
-
+
Overview
@@ -110,7 +109,7 @@ Overview
Instance Method Summary
- (collapse)
+ collapse
@@ -118,7 +117,7 @@
-
- - (Object) delete
+ #delete ⇒ Object
@@ -141,7 +140,7 @@
-
- - (Object) get
+ #get ⇒ Object
@@ -164,7 +163,7 @@
-
- - (Object) head
+ #head ⇒ Object
@@ -187,7 +186,7 @@
-
- - (Object) options
+ #options ⇒ Object
@@ -210,7 +209,7 @@
-
- - (Object) patch
+ #patch ⇒ Object
@@ -233,7 +232,7 @@
-
- - (Object) post
+ #post ⇒ Object
@@ -256,7 +255,7 @@
-
- - (Object) put
+ #put ⇒ Object
@@ -288,7 +287,7 @@
Instance Method Details
- - (Object) delete
+ #delete ⇒ Object
@@ -332,7 +331,7 @@
- - (Object) get
+ #get ⇒ Object
@@ -376,7 +375,7 @@
- - (Object) head
+ #head ⇒ Object
@@ -420,7 +419,7 @@
- - (Object) options
+ #options ⇒ Object
@@ -464,7 +463,7 @@
- - (Object) patch
+ #patch ⇒ Object
@@ -508,7 +507,7 @@
- - (Object) post
+ #post ⇒ Object
@@ -552,7 +551,7 @@
Module: RSpec::Rails
+-
-
-
+
+
+
-
- Defined in: -
- lib/rspec-rails.rb,
- lib/rspec/rails/version.rb,
lib/rspec/rails/adapters.rb,
lib/rspec/rails/matchers.rb,
lib/rspec/rails/view_assigns.rb,
lib/rspec/rails/configuration.rb,
lib/rspec/rails/feature_check.rb,
lib/rspec/rails/active_record.rb,
lib/rspec/rails/view_rendering.rb,
lib/rspec/rails/fixture_support.rb,
lib/rspec/rails/view_path_builder.rb,
lib/rspec/rails/matchers/be_valid.rb,
lib/rspec/rails/matchers/be_a_new.rb,
lib/rspec/rails/view_spec_methods.rb,
lib/rspec/rails/matchers/active_job.rb,
lib/rspec/rails/matchers/redirect_to.rb,
lib/rspec/rails/file_fixture_support.rb,
lib/rspec/rails/matchers/base_matcher.rb,
lib/rspec/rails/matchers/have_rendered.rb,
lib/rspec/rails/matchers/be_new_record.rb,
lib/rspec/rails/matchers/routing_matchers.rb,
lib/rspec/rails/example/job_example_group.rb,
lib/rspec/rails/example/job_example_group.rb,
lib/rspec/rails/matchers/have_http_status.rb,
lib/rspec/rails/example/view_example_group.rb,
lib/rspec/rails/matchers/have_enqueued_mail.rb,
lib/rspec/rails/fixture_file_upload_support.rb,
lib/rspec/rails/example/model_example_group.rb,
lib/rspec/rails/example/rails_example_group.rb,
lib/rspec/rails/example/mailer_example_group.rb,
lib/rspec/rails/example/mailer_example_group.rb,
lib/rspec/rails/example/helper_example_group.rb,
lib/rspec/rails/example/system_example_group.rb,
lib/rspec/rails/example/request_example_group.rb,
lib/rspec/rails/example/routing_example_group.rb,
lib/rspec/rails/example/feature_example_group.rb,
lib/rspec/rails/example/controller_example_group.rb +-
+
- Defined in: +
- lib/rspec-rails.rb,
+ lib/rspec/rails/version.rb,
lib/rspec/rails/adapters.rb,
lib/rspec/rails/matchers.rb,
lib/rspec/rails/view_assigns.rb,
lib/rspec/rails/active_record.rb,
lib/rspec/rails/configuration.rb,
lib/rspec/rails/feature_check.rb,
lib/rspec/rails/view_rendering.rb,
lib/rspec/rails/fixture_support.rb,
lib/rspec/rails/matchers/be_a_new.rb,
lib/rspec/rails/matchers/be_valid.rb,
lib/rspec/rails/view_path_builder.rb,
lib/rspec/rails/view_spec_methods.rb,
lib/rspec/rails/matchers/active_job.rb,
lib/rspec/rails/file_fixture_support.rb,
lib/rspec/rails/matchers/redirect_to.rb,
lib/rspec/rails/matchers/action_cable.rb,
lib/rspec/rails/matchers/base_matcher.rb,
lib/rspec/rails/matchers/be_new_record.rb,
lib/rspec/rails/matchers/have_rendered.rb,
lib/rspec/rails/matchers/action_mailbox.rb,
lib/rspec/rails/example/job_example_group.rb,
lib/rspec/rails/example/job_example_group.rb,
lib/rspec/rails/matchers/have_http_status.rb,
lib/rspec/rails/matchers/routing_matchers.rb,
lib/rspec/rails/example/view_example_group.rb,
lib/rspec/rails/example/model_example_group.rb,
lib/rspec/rails/example/rails_example_group.rb,
lib/rspec/rails/fixture_file_upload_support.rb,
lib/rspec/rails/matchers/have_enqueued_mail.rb,
lib/rspec/rails/example/helper_example_group.rb,
lib/rspec/rails/example/mailer_example_group.rb,
lib/rspec/rails/example/mailer_example_group.rb,
lib/rspec/rails/example/system_example_group.rb,
lib/rspec/rails/example/channel_example_group.rb,
lib/rspec/rails/example/channel_example_group.rb,
lib/rspec/rails/example/feature_example_group.rb,
lib/rspec/rails/example/mailbox_example_group.rb,
lib/rspec/rails/example/request_example_group.rb,
lib/rspec/rails/example/routing_example_group.rb,
lib/rspec/rails/example/controller_example_group.rb,
lib/rspec/rails/matchers/action_cable/have_streams.rb,
lib/rspec/rails/matchers/action_cable/have_broadcasted_to.rb
+
Overview
Overview
- Modules: ControllerExampleGroup, FeatureExampleGroup, HelperExampleGroup, JobExampleGroup, MailerExampleGroup, Matchers, ModelExampleGroup, RailsExampleGroup, RequestExampleGroup, RoutingExampleGroup, SystemExampleGroup, Version, ViewAssigns, ViewExampleGroup, ViewRendering, ViewSpecMethods + Modules: ChannelExampleGroup, ControllerExampleGroup, FeatureExampleGroup, HelperExampleGroup, JobExampleGroup, MailboxExampleGroup, MailerExampleGroup, Matchers, ModelExampleGroup, RailsExampleGroup, RequestExampleGroup, RoutingExampleGroup, SystemExampleGroup, Version, ViewAssigns, ViewExampleGroup, ViewRendering, ViewSpecMethods @@ -111,18 +109,19 @@
Overview
Constant Summary
++ Constant Summary + collapse +
+-
-
- DIRECTORY_MAPPINGS =
+
- Assertions =
--@@ -132,24 +131,16 @@- This constant is part of a private API. - You should avoid using this constant if possible, as it may be removed or be changed in the future. -
-Mappings used by
+infer_spec_type_from_file_location!
.Constant aliased to either Minitest or TestUnit, depending on what is +loaded.
Constant Summary
- Assertions =
{ - :controller => %w[spec controllers], - :helper => %w[spec helpers], - :job => %w[spec jobs], - :mailer => %w[spec mailers], - :model => %w[spec models], - :request => %w[spec (requests|integration|api)], - :routing => %w[spec routing], - :view => %w[spec views], - :feature => %w[spec features], - :system => %w[spec system] -}
+ Minitest::Assertions
- - Assertions =
+
- DIRECTORY_MAPPINGS =
--@@ -159,7 +150,20 @@Constant aliased to either Minitest or TestUnit, depending on what is -loaded.
++ This constant is part of a private API. + You should avoid using this constant if possible, as it may be removed or be changed in the future. +
+Mappings used by
infer_spec_type_from_file_location!
.Constant Summary
- DIRECTORY_MAPPINGS =
Test::Unit::Assertions
+ { + channel: %w[spec channels], + controller: %w[spec controllers], + helper: %w[spec helpers], + job: %w[spec jobs], + mailer: %w[spec mailers], + model: %w[spec models], + request: %w[spec (requests|integration|api)], + routing: %w[spec routing], + view: %w[spec views], + feature: %w[spec features], + system: %w[spec system], + mailbox: %w[spec mailboxes] +}
Constant Summary
Class Method Summary - (collapse) + collapse
-
@@ -181,7 +185,7 @@
-
- + (Object) add_test_type_configurations(config)
+ .add_test_type_configurations(config) ⇒ Object
@@ -205,7 +209,7 @@
Instance Method Summary - (collapse) + collapse
-
@@ -213,7 +217,7 @@
-
- - (Object) infer_spec_type_from_file_location!
+ #infer_spec_type_from_file_location! ⇒ Object
@@ -236,7 +240,7 @@
- - - (Object) render_views(val) + #render_views(val) ⇒ Object @@ -259,7 +263,7 @@
- - - (Object) render_views=(val) + #render_views=(val) ⇒ Object @@ -282,7 +286,7 @@
- - - (Object) render_views? + #render_views? ⇒ Object @@ -314,7 +318,7 @@
Class Method Details
- + (Object) add_test_type_configurations(config) + .add_test_type_configurations(config) ⇒ Object @@ -340,8 +344,6 @@
-43 -44 45 46 47 @@ -350,21 +352,23 @@
+53 +54 +5550 51 52 -53
- @@ -380,7 +384,7 @@# File 'lib/rspec/rails/configuration.rb', line 43 +
# File 'lib/rspec/rails/configuration.rb', line 45 def self.add_test_type_configurations(config) - config.include RSpec::Rails::ControllerExampleGroup, :type => :controller - config.include RSpec::Rails::HelperExampleGroup, :type => :helper - config.include RSpec::Rails::ModelExampleGroup, :type => :model - config.include RSpec::Rails::RequestExampleGroup, :type => :request - config.include RSpec::Rails::RoutingExampleGroup, :type => :routing - config.include RSpec::Rails::ViewExampleGroup, :type => :view - config.include RSpec::Rails::FeatureExampleGroup, :type => :feature - config.include RSpec::Rails::Matchers - config.include RSpec::Rails::SystemExampleGroup, :type => :system + config.include RSpec::Rails::ControllerExampleGroup, type: :controller + config.include RSpec::Rails::HelperExampleGroup, type: :helper + config.include RSpec::Rails::ModelExampleGroup, type: :model + config.include RSpec::Rails::RequestExampleGroup, type: :request + config.include RSpec::Rails::RoutingExampleGroup, type: :routing + config.include RSpec::Rails::ViewExampleGroup, type: :view + config.include RSpec::Rails::FeatureExampleGroup, type: :feature + config.include RSpec::Rails::Matchers + config.include RSpec::Rails::SystemExampleGroup, type: :system end
Instance Method Details
- - (Object) infer_spec_type_from_file_location! + #infer_spec_type_from_file_location! ⇒ Object @@ -419,7 +423,7 @@
- - (Object) render_views(val) + #render_views(val) ⇒ Object @@ -455,7 +459,7 @@
- - (Object) render_views=(val) + #render_views=(val) ⇒ Object @@ -492,7 +496,7 @@
- - (Object) render_views? + #render_views? ⇒ Object @@ -529,10 +533,10 @@
- Generated on Tue Oct 8 11:39:25 2019 by +- + \ No newline at end of file diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/ActiveRecordConfiguration.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/ActiveRecordConfiguration.html index 351613e66..3f93f82a2 100644 --- a/source/documentation/3.9/rspec-rails/RSpec/Rails/ActiveRecordConfiguration.html +++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/ActiveRecordConfiguration.html @@ -1,80 +1,75 @@ - - + ++ Generated on Thu Jan 2 10:07:34 2020 by yard - 0.8.7.6 (ruby-2.6.5). + 0.9.22 (ruby-2.7.0).+Class: RSpec::Rails::ActiveRecordConfiguration - — Documentation by YARD 0.8.7.6 + — Documentation by YARD 0.9.22 - + - + - + - - + - + --++ + ++ +++ -- - -+ - -+ +Class: RSpec::Rails::ActiveRecordConfiguration +
Class: RSpec::Rails::ActiveRecordConfiguration
- --
+
- Inherits: -
-
+
-
+
- Inherits: +
-
Object
-
@@ -85,21 +80,25 @@
-
+
+
+
-
-
- - Defined in: -
- lib/rspec/rails/active_record.rb + - - + + +
- Defined in: +
- lib/rspec/rails/active_record.rb +
- Extended by: +
- ActiveSupport::Concern +
- Includes: +
- ActionCable::Channel::TestCase::Behavior, ActionCable::Connection::TestCase::Behavior, RailsExampleGroup +
- Defined in: +
- lib/rspec/rails/example/channel_example_group.rb,
+ lib/rspec/rails/example/channel_example_group.rb +
+ -
+
+
+ #have_rejected_connection ⇒ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + +
Checks that the connection attempt has been rejected.
+
+
+
+ -
+
+
+ #have_stream_for(object) ⇒ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + +
Checks that the channel has been subscribed to a stream for the given model.
+
+
+
+ -
+
+
+ #have_stream_from(stream) ⇒ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + +
Checks that the channel has been subscribed to the given stream.
+
+
+
+ -
+
+
+ #have_streams ⇒ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + +
Checks that the subscription is subscribed to at least one stream.
+
+
+
+ - Inherits: -
-
+
-
+
- Inherits: +
-
Object
-
@@ -85,21 +80,25 @@
-
+
+
+
-
-
- - Defined in: -
- lib/rspec/rails/configuration.rb + - - + + +
- Defined in: +
- lib/rspec/rails/configuration.rb +
- Extended by: -
- ActiveSupport::Concern - - +
- Extended by: +
- ActiveSupport::Concern +
- Includes: -
- ActionController::TestCase::Behavior, AssertionDelegator.new(
+
+
+
-
+
- Includes: +
- ActionController::TestCase::Behavior, AssertionDelegator.new( ActionDispatch::Assertions::RoutingAssertions ), Matchers::RedirectTo, Matchers::RenderTemplate, Matchers::RoutingMatchers, RailsExampleGroup, ViewRendering - - +
- Defined in: -
- lib/rspec/rails/example/controller_example_group.rb + + +
- Defined in: +
- lib/rspec/rails/example/controller_example_group.rb +
-
- - (Object) controller
+ #controller ⇒ Object
@@ -157,7 +154,7 @@
Instance Attribute Summary (collap
- - - (Object) routes + #routes ⇒ Object @@ -190,7 +187,7 @@
Instance Attribute Summary (collap
Instance Method Summary - (collapse) + collapse
-
@@ -198,7 +195,7 @@
-
- - (Object) bypass_rescue
+ #bypass_rescue ⇒ Object
@@ -221,7 +218,7 @@
- - - (Object) method_missing(method, *args, &block) + #method_missing(method, *args, &block) ⇒ Object @@ -339,7 +336,7 @@
Dynamic Method Handling
- - (Object) method_missing(method, *args, &block) + #method_missing(method, *args, &block) ⇒ Object @@ -395,7 +392,7 @@
Instance Attribute Details
- - (Object) controller (readonly) + #controller ⇒ Object (readonly) @@ -437,7 +434,7 @@
- - (Object) routes + #routes ⇒ Object @@ -484,7 +481,7 @@
Instance Method Details
- - (Object) bypass_rescue + #bypass_rescue ⇒ Object @@ -513,7 +510,7 @@
expect do bypass_rescue - get :show, :id => profile.id + 1 + get :show, id: profile.id + 1 end.to raise_error(/403 Forbidden/) end end @@ -546,10 +543,10 @@
- Generated on Tue Oct 8 11:39:26 2019 by +- + \ No newline at end of file diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/ControllerExampleGroup/ClassMethods.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/ControllerExampleGroup/ClassMethods.html index 5224bef89..5b0123024 100644 --- a/source/documentation/3.9/rspec-rails/RSpec/Rails/ControllerExampleGroup/ClassMethods.html +++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/ControllerExampleGroup/ClassMethods.html @@ -1,90 +1,88 @@ - - + ++ Generated on Thu Jan 2 10:07:35 2020 by yard - 0.8.7.6 (ruby-2.6.5). + 0.9.22 (ruby-2.7.0).+Module: RSpec::Rails::ControllerExampleGroup::ClassMethods - — Documentation by YARD 0.8.7.6 + — Documentation by YARD 0.9.22 - + - + - + - - + - + --++ + ++ +++ -- - -+ - -+ +Module: RSpec::Rails::ControllerExampleGroup::ClassMethods +
Module: RSpec::Rails::ControllerExampleGroup::ClassMethods
++ --
-
-
+
-
- Defined in: -
- lib/rspec/rails/example/controller_example_group.rb + + +
- Defined in: +
- lib/rspec/rails/example/controller_example_group.rb +
-
+
Overview
@@ -106,7 +104,7 @@Overview
Instance Method Summary - (collapse) + collapse
-
@@ -114,7 +112,7 @@
-
- - (Object) controller(base_class = nil, &body)
+ #controller(base_class = nil, &body) ⇒ Object
@@ -137,7 +135,7 @@
- - - (Object) routes + #routes ⇒ Object @@ -169,7 +167,7 @@
Instance Method Details
- - (Object) controller(base_class = nil, &body) + #controller(base_class = nil, &body) ⇒ Object @@ -288,7 +286,7 @@
# File 'lib/rspec/rails/example/controller_example_group.rb', line 61 def controller(base_class = nil, &body) - if RSpec.configuration.infer_base_class_for_anonymous_controllers? + if RSpec.configuration.infer_base_class_for_anonymous_controllers? base_class ||= controller_class end base_class ||= defined?(ApplicationController) ? ApplicationController : ActionController::Base @@ -323,9 +321,9 @@
self.routes = ActionDispatch::Routing::RouteSet.new.tap do |r| r.draw do resources resource_name, - :as => resource_as, - :module => resource_module, - :path => resource_path + as: resource_as, + module: resource_module, + path: resource_path end end end @@ -343,7 +341,7 @@
- - (Object) routes + #routes ⇒ Object @@ -401,10 +399,10 @@
- Generated on Tue Oct 8 11:39:26 2019 by +- + \ No newline at end of file diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/FeatureExampleGroup.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/FeatureExampleGroup.html index fbe788e54..e852b4596 100644 --- a/source/documentation/3.9/rspec-rails/RSpec/Rails/FeatureExampleGroup.html +++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/FeatureExampleGroup.html @@ -1,98 +1,98 @@ - - + ++ Generated on Thu Jan 2 10:07:35 2020 by yard - 0.8.7.6 (ruby-2.6.5). + 0.9.22 (ruby-2.7.0).+Module: RSpec::Rails::FeatureExampleGroup - — Documentation by YARD 0.8.7.6 + — Documentation by YARD 0.9.22 - + - + - + - - + - + --++ + ++ +++ -- - -+ - -+ +Module: RSpec::Rails::FeatureExampleGroup +
Module: RSpec::Rails::FeatureExampleGroup
++ --
-
-
- Extended by: -
- ActiveSupport::Concern - - +
- Extended by: +
- ActiveSupport::Concern +
- Includes: -
- RailsExampleGroup - - +
- Includes: +
- RailsExampleGroup +
- Defined in: -
- lib/rspec/rails/example/feature_example_group.rb -
-
+
-
+
-
+
- Defined in: +
- lib/rspec/rails/example/feature_example_group.rb +
Overview
@@ -105,8 +105,12 @@Overview
Constant Summary
++ Constant Summary + collapse +
+- DEFAULT_HOST =
@@ -136,7 +140,7 @@
Constant Summary
Instance Method Summary - (collapse) + collapse
-
@@ -144,7 +148,7 @@
-
- - (Object) visit
+ #visit ⇒ Object
@@ -213,7 +217,7 @@
Instance Method Details
- - (Object) visit + #visit ⇒ Object @@ -237,16 +241,16 @@
+25 +26 27 28 29 30 -31 -32 -33
+31- # File 'lib/rspec/rails/example/feature_example_group.rb', line 27 +
# File 'lib/rspec/rails/example/feature_example_group.rb', line 25 def visit(*) if defined?(super) @@ -264,10 +268,10 @@
-
- Generated on Tue Oct 8 11:39:26 2019 by +- + \ No newline at end of file diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/HelperExampleGroup.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/HelperExampleGroup.html index 632594f66..06c9dd987 100644 --- a/source/documentation/3.9/rspec-rails/RSpec/Rails/HelperExampleGroup.html +++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/HelperExampleGroup.html @@ -1,98 +1,98 @@ - - + ++ Generated on Thu Jan 2 10:07:35 2020 by yard - 0.8.7.6 (ruby-2.6.5). + 0.9.22 (ruby-2.7.0).+Module: RSpec::Rails::HelperExampleGroup - — Documentation by YARD 0.8.7.6 + — Documentation by YARD 0.9.22 - + - + - + - - + - + --++ + ++ +++ -- - -+ - -+ +Module: RSpec::Rails::HelperExampleGroup +
Module: RSpec::Rails::HelperExampleGroup
++ --
-
-
- Extended by: -
- ActiveSupport::Concern - - +
- Extended by: +
- ActiveSupport::Concern +
- Includes: -
- ActionView::TestCase::Behavior, RailsExampleGroup, ViewAssigns - - +
- Includes: +
- ActionView::TestCase::Behavior, RailsExampleGroup, ViewAssigns +
- Defined in: -
- lib/rspec/rails/example/helper_example_group.rb + + + -
-
+
-
+
-
+
- Defined in: +
- lib/rspec/rails/example/helper_example_group.rb +
Overview
@@ -114,7 +114,7 @@Overview
Instance Method Summary - (collapse) + collapse
-
@@ -122,7 +122,7 @@
-
- - (Object) helper
+ #helper ⇒ Object
@@ -203,7 +203,7 @@
Instance Method Details
- - (Object) helper + #helper ⇒ Object @@ -226,15 +226,15 @@
-29 -30 -31 -32 -33 -34
+22 +23 +24 +25 +26 +27
- @@ -359,7 +453,7 @@# File 'lib/rspec/rails/example/helper_example_group.rb', line 29 +
# File 'lib/rspec/rails/example/helper_example_group.rb', line 22 def helper _view.tap do |v| @@ -251,10 +251,10 @@
-
- Generated on Tue Oct 8 11:39:26 2019 by +- + \ No newline at end of file diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/JobExampleGroup.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/JobExampleGroup.html index 95af7a8ef..de650f3a2 100644 --- a/source/documentation/3.9/rspec-rails/RSpec/Rails/JobExampleGroup.html +++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/JobExampleGroup.html @@ -1,100 +1,100 @@ - - + ++ Generated on Thu Jan 2 10:07:34 2020 by yard - 0.8.7.6 (ruby-2.6.5). + 0.9.22 (ruby-2.7.0).+Module: RSpec::Rails::JobExampleGroup - — Documentation by YARD 0.8.7.6 + — Documentation by YARD 0.9.22 - + - + - + - - + - + --++ + ++ +++ -- - -+ - -+ +Module: RSpec::Rails::JobExampleGroup +
Module: RSpec::Rails::JobExampleGroup
++ --
-
-
- Extended by: -
- ActiveSupport::Concern - - +
- Extended by: +
- ActiveSupport::Concern +
- Includes: -
- RailsExampleGroup - - +
- Includes: +
- RailsExampleGroup +
- Defined in: -
- lib/rspec/rails/example/job_example_group.rb,
+ + + + +-
+
- Defined in: +
- lib/rspec/rails/example/job_example_group.rb,
lib/rspec/rails/example/job_example_group.rb
+
-
+
-
+
Overview
@@ -154,10 +154,10 @@Overview
- Generated on Tue Oct 8 11:39:26 2019 by +- + \ No newline at end of file diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/MailboxExampleGroup.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/MailboxExampleGroup.html new file mode 100644 index 000000000..1fb191be7 --- /dev/null +++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/MailboxExampleGroup.html @@ -0,0 +1,467 @@ + + + + ++ Generated on Thu Jan 2 10:07:34 2020 by yard - 0.8.7.6 (ruby-2.6.5). + 0.9.22 (ruby-2.7.0).++ Module: RSpec::Rails::MailboxExampleGroup + + — Documentation by YARD 0.9.22 + + + + + + + + + + + + + + + + + + + ++ + ++ ++ + ++ + \ No newline at end of file diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/MailerExampleGroup.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/MailerExampleGroup.html index 2dd48b554..06d3c7d27 100644 --- a/source/documentation/3.9/rspec-rails/RSpec/Rails/MailerExampleGroup.html +++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/MailerExampleGroup.html @@ -1,105 +1,104 @@ - - + ++ +Module: RSpec::Rails::MailboxExampleGroup + + + +
++ + + + ++ +-
+
- Extended by: +
- ActionMailbox::TestHelper, ActiveSupport::Concern +
-
+
- Defined in: +
- lib/rspec/rails/example/mailbox_example_group.rb +
Overview
++++Container module for mailbox spec functionality.
+ + ++ + ++ + + + + + + ++ Instance Method Summary + collapse +
+ +-
+
+
-
+
+
+ #have_been_delivered ⇒ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + +
Passes if the inbound email was delivered.
+
+
+
+ -
+
+
+ #have_bounced ⇒ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + +
Passes if the inbound email bounced during processing.
+
+
+
+ -
+
+
+ #have_failed ⇒ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + +
Passes if the inbound email failed to process.
+
+
+
+ -
+
+
+ #process(message) ⇒ ActionMaibox::InboundMessage
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + +
Process an inbound email message directly, bypassing routing.
+
+
+
+
++ +Instance Method Details
+ + +++ ++ + #have_been_delivered ⇒ Object + + + + + +
++++Passes if the inbound email was delivered
+ + ++ +++ + +Examples:
+ + +
+ +inbound_email = process(args) +expect(inbound_email).to have_been_delivered
+
++ ++ ++ + +44 +45 +46
++ +# File 'lib/rspec/rails/example/mailbox_example_group.rb', line 44 + +def have_been_delivered + satisfy('have been delivered', &:delivered?) +end
+++ ++ + #have_bounced ⇒ Object + + + + + +
++++Passes if the inbound email bounced during processing
+ + ++ +++ + +Examples:
+ + +
+ +inbound_email = process(args) +expect(inbound_email).to have_bounced
+
++ ++ ++ + +54 +55 +56
++ +# File 'lib/rspec/rails/example/mailbox_example_group.rb', line 54 + +def have_bounced + satisfy('have bounced', &:bounced?) +end
+++ ++ + #have_failed ⇒ Object + + + + + +
++++Passes if the inbound email failed to process
+ + ++ +++ + +Examples:
+ + +
+ +inbound_email = process(args) +expect(inbound_email).to have_failed
+
++ ++ ++ + +64 +65 +66
++ +# File 'lib/rspec/rails/example/mailbox_example_group.rb', line 64 + +def have_failed + satisfy('have failed', &:failed?) +end
+++ ++ + #process(message) ⇒ ActionMaibox::InboundMessage + + + + + +
++++Process an inbound email message directly, bypassing routing.
+ + ++Parameters:
+-
+
+
-
+
+ message
+
+
+ (Hash, Mail::Message)
+
+
+
+ —
+ + +
a mail message or hash of +attributes used to build one
+
+
+
Returns:
+-
+
+
- + + + (ActionMaibox::InboundMessage) + + + + + +
+
++ ++ ++ + +73 +74 +75 +76 +77
++ +# File 'lib/rspec/rails/example/mailbox_example_group.rb', line 73 + +def process(message) + MailboxExampleGroup.create_inbound_email(message).tap do |mail| + self.class.mailbox_class.receive(mail) + end +end
++ Generated on Thu Jan 2 10:07:35 2020 by + yard + 0.9.22 (ruby-2.7.0). ++ + + +Module: RSpec::Rails::MailerExampleGroup - — Documentation by YARD 0.8.7.6 + — Documentation by YARD 0.9.22 - + - + - + - - + - + --++ + ++ +++ -- - -+ - -+ +Module: RSpec::Rails::MailerExampleGroup +
Module: RSpec::Rails::MailerExampleGroup
++ --
-
-
- Extended by: -
- ActiveSupport::Concern - - +
- Extended by: +
- ActiveSupport::Concern +
- Includes: -
- ActionMailer::TestCase::Behavior, RailsExampleGroup - - +
- Includes: +
- ActionMailer::TestCase::Behavior, RailsExampleGroup +
- Defined in: -
- lib/rspec/rails/example/mailer_example_group.rb,
+ + + + +-
+
- Defined in: +
- lib/rspec/rails/example/mailer_example_group.rb,
lib/rspec/rails/example/mailer_example_group.rb
+
-
+
-
+
Overview
-@@ -166,10 +165,10 @@Container module for mailer spec functionality. It is only available if -ActionMailer has been loaded before it.
+Container module for mailer spec functionality.
Overview
- Generated on Tue Oct 8 11:39:26 2019 by +- + \ No newline at end of file diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/MailerExampleGroup/ClassMethods.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/MailerExampleGroup/ClassMethods.html index 3075d6328..50a195db9 100644 --- a/source/documentation/3.9/rspec-rails/RSpec/Rails/MailerExampleGroup/ClassMethods.html +++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/MailerExampleGroup/ClassMethods.html @@ -1,90 +1,88 @@ - - + ++ Generated on Thu Jan 2 10:07:34 2020 by yard - 0.8.7.6 (ruby-2.6.5). + 0.9.22 (ruby-2.7.0).+Module: RSpec::Rails::MailerExampleGroup::ClassMethods - — Documentation by YARD 0.8.7.6 + — Documentation by YARD 0.9.22 - + - + - + - - + - + --++ + ++ +++ -- - -+ - -+ +Module: RSpec::Rails::MailerExampleGroup::ClassMethods +
Module: RSpec::Rails::MailerExampleGroup::ClassMethods
++ --
-
-
+
-
- Defined in: -
- lib/rspec/rails/example/mailer_example_group.rb + + +
- Defined in: +
- lib/rspec/rails/example/mailer_example_group.rb +
-
+
Overview
@@ -106,7 +104,7 @@Overview
Instance Method Summary - (collapse) + collapse
-
@@ -114,7 +112,7 @@
-
- - (Object) mailer_class
+ #mailer_class ⇒ Object
@@ -146,7 +144,7 @@
Instance Method Details
- - (Object) mailer_class + #mailer_class ⇒ Object @@ -187,10 +185,10 @@
- Generated on Tue Oct 8 11:39:26 2019 by +- + \ No newline at end of file diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers.html index 3bb05f13e..f224aa467 100644 --- a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers.html +++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers.html @@ -1,92 +1,90 @@ - - + ++ Generated on Thu Jan 2 10:07:34 2020 by yard - 0.8.7.6 (ruby-2.6.5). + 0.9.22 (ruby-2.7.0).+Module: RSpec::Rails::Matchers - — Documentation by YARD 0.8.7.6 + — Documentation by YARD 0.9.22 - + - + - + - - + - + --++ + ++ +++ --+ - -- - + +Module: RSpec::Rails::Matchers +
Module: RSpec::Rails::Matchers
++ --
-
-
+
+
+
-
- Defined in: -
- lib/rspec/rails/matchers.rb,
- lib/rspec/rails/matchers/be_valid.rb,
lib/rspec/rails/matchers/be_a_new.rb,
lib/rspec/rails/matchers/active_job.rb,
lib/rspec/rails/matchers/redirect_to.rb,
lib/rspec/rails/matchers/base_matcher.rb,
lib/rspec/rails/matchers/have_rendered.rb,
lib/rspec/rails/matchers/be_new_record.rb,
lib/rspec/rails/matchers/routing_matchers.rb,
lib/rspec/rails/matchers/have_http_status.rb,
lib/rspec/rails/matchers/have_enqueued_mail.rb +-
+
- Defined in: +
- lib/rspec/rails/matchers.rb,
+ lib/rspec/rails/matchers/be_a_new.rb,
lib/rspec/rails/matchers/be_valid.rb,
lib/rspec/rails/matchers/active_job.rb,
lib/rspec/rails/matchers/redirect_to.rb,
lib/rspec/rails/matchers/action_cable.rb,
lib/rspec/rails/matchers/base_matcher.rb,
lib/rspec/rails/matchers/be_new_record.rb,
lib/rspec/rails/matchers/have_rendered.rb,
lib/rspec/rails/matchers/action_mailbox.rb,
lib/rspec/rails/matchers/have_http_status.rb,
lib/rspec/rails/matchers/routing_matchers.rb,
lib/rspec/rails/matchers/have_enqueued_mail.rb,
lib/rspec/rails/matchers/action_cable/have_streams.rb,
lib/rspec/rails/matchers/action_cable/have_broadcasted_to.rb
+
Overview
@@ -102,7 +100,7 @@Overview
- Modules: ActiveJob, HaveHttpStatus, RedirectTo, RenderTemplate, RoutingMatchers + Modules: ActionCable, ActionMailbox, ActiveJob, HaveHttpStatus, RedirectTo, RenderTemplate, RoutingMatchers @@ -120,7 +118,7 @@
Overview
Instance Method Summary - (collapse) + collapse
-
@@ -128,7 +126,7 @@
-
- - (Object) be_a_new(model_class)
+ #be_a_new(model_class) ⇒ Object
@@ -151,7 +149,7 @@
- - - (Object) be_new_record + #be_new_record ⇒ Object @@ -174,7 +172,7 @@
- - - (Object) be_valid(*args) + #be_valid(*args) ⇒ Object @@ -197,7 +195,7 @@
- - - (Object) have_been_enqueued + #have_been_enqueued ⇒ Object @@ -220,7 +218,55 @@
- - - (Object) have_enqueued_job(job = nil) + #have_been_performed ⇒ Object + + + + + + + + + + + + + +
+ + ++ +Passes if a job has been performed.
+- + + + #have_broadcasted_to(target = nil) ⇒ Object + + + + (also: #broadcast_to) + + + + + + + + + + + +
+ + ++ +Passes if a message has been sent to a stream/object inside a block.
+- + + + #have_enqueued_job(job = nil) ⇒ Object @@ -245,7 +291,7 @@
- - - (Object) have_enqueued_mail(mailer_class, mail_method_name) + #have_enqueued_mail(mailer_class = nil, mail_method_name = nil) ⇒ Object @@ -270,7 +316,7 @@
- - - (Object) have_http_status(target) + #have_http_status(target) ⇒ Object @@ -287,6 +333,54 @@
+ + ++Passes if
response
has a matching HTTP status code.- + + + #have_performed_job(job = nil) ⇒ Object + + + + (also: #perform_job) + + + + + + + + + + + +
+ + ++ +Passes if a job has been performed inside block.
+- + + + #receive_inbound_email(message) ⇒ Object + + + + + + + + + + + + + +
@@ -302,7 +396,7 @@+Passes if the given inbound email would be routed to the subject inbox.
+Instance Method Details
- - (Object) be_a_new(model_class) + #be_a_new(model_class) ⇒ Object @@ -349,7 +443,7 @@
# File 'lib/rspec/rails/matchers/be_a_new.rb', line 78 def be_a_new(model_class) - BeANew.new(model_class) + BeANew.new(model_class) end
- - - (Object) be_new_record + #be_new_record ⇒ Object @@ -174,7 +172,7 @@
- - (Object) be_new_record + #be_new_record ⇒ Object @@ -398,7 +492,7 @@
# File 'lib/rspec/rails/matchers/be_new_record.rb', line 25 def be_new_record - BeANewRecord.new + BeANewRecord.new end
@@ -408,7 +502,7 @@- - (Object) be_valid(*args) + #be_valid(*args) ⇒ Object @@ -459,7 +553,7 @@
- - (Object) have_been_enqueued + #have_been_enqueued ⇒ Object @@ -478,7 +572,7 @@
Examples:
-before { ActiveJob::Base.queue_adapter.enqueued_jobs.clear } +
before { ActiveJob::Base.queue_adapter.enqueued_jobs.clear } HeavyLiftingJob.perform_later expect(HeavyLiftingJob).to have_been_enqueued @@ -513,17 +607,175 @@
-303 -304 -305 -306
+351 +352 +353 +354- + + +# File 'lib/rspec/rails/matchers/active_job.rb', line 303 +
# File 'lib/rspec/rails/matchers/active_job.rb', line 351 def have_been_enqueued check_active_job_adapter - ActiveJob::HaveBeenEnqueued.new + ActiveJob::HaveBeenEnqueued.new +end
+++ ++ + #have_been_performed ⇒ Object + + + + + +
++++Passes if a job has been performed. May chain at_least, at_most or exactly to specify a number of times.
+ + ++ +++ + +Examples:
+ + +
+ +before do + ActiveJob::Base.queue_adapter.performed_jobs.clear + ActiveJob::Base.queue_adapter.perform_enqueued_jobs = true + ActiveJob::Base.queue_adapter.perform_enqueued_at_jobs = true +end + +HeavyLiftingJob.perform_later +expect(HeavyLiftingJob).to have_been_performed + +HelloJob.perform_later +HeavyLiftingJob.perform_later +expect(HeavyLiftingJob).to have_been_performed.exactly(:once) + +3.times { HelloJob.perform_later } +expect(HelloJob).to have_been_performed.at_least(2).times + +HelloJob.perform_later +HeavyLiftingJob.perform_later +expect(HelloJob).to have_been_performed +expect(HeavyLiftingJob).to have_been_performed + +HelloJob.set(wait_until: Date.tomorrow.noon, queue: "low").perform_later(42) +expect(HelloJob).to have_been_performed.with(42).on_queue("low").at(Date.tomorrow.noon)
+
++ ++ ++ + +424 +425 +426 +427
++ +# File 'lib/rspec/rails/matchers/active_job.rb', line 424 + +def have_been_performed + check_active_job_adapter + ActiveJob::HaveBeenPerformed.new +end
++++ + #have_broadcasted_to(target = nil) ⇒ Object + + + + Also known as: + broadcast_to + + + + +
++++Passes if a message has been sent to a stream/object inside a block. +May chain
+ + +at_least
,at_most
orexactly
to specify a number of times. +To specify channel from which message has been broadcasted to object usefrom_channel
.+ +++ + +Examples:
+ + +
+ +expect { + ActionCable.server.broadcast "messages", text: 'Hi!' +}.to have_broadcasted_to("messages") + +expect { + SomeChannel.broadcast_to(user) +}.to have_broadcasted_to(user).from_channel(SomeChannel) + +# Using alias +expect { + ActionCable.server.broadcast "messages", text: 'Hi!' +}.to broadcast_to("messages") + +expect { + ActionCable.server.broadcast "messages", text: 'Hi!' + ActionCable.server.broadcast "all", text: 'Hi!' +}.to have_broadcasted_to("messages").exactly(:once) + +expect { + 3.times { ActionCable.server.broadcast "messages", text: 'Hi!' } +}.to have_broadcasted_to("messages").at_least(2).times + +expect { + ActionCable.server.broadcast "messages", text: 'Hi!' +}.to have_broadcasted_to("messages").at_most(:twice) + +expect { + ActionCable.server.broadcast "messages", text: 'Hi!' +}.to have_broadcasted_to("messages").with(text: 'Hi!')
+
+ @@ -533,7 +785,7 @@+ ++ + +48 +49 +50 +51 +52
++ # File 'lib/rspec/rails/matchers/action_cable.rb', line 48 + +def have_broadcasted_to(target = nil) + check_action_cable_adapter + + ActionCable::HaveBroadcastedTo.new(target, channel: described_class) end
- - (Object) have_enqueued_job(job = nil) + #have_enqueued_job(job = nil) ⇒ Object @@ -607,17 +859,17 @@
-268 -269 -270 -271
+316 +317 +318 +319- @@ -627,7 +879,7 @@# File 'lib/rspec/rails/matchers/active_job.rb', line 268 +
# File 'lib/rspec/rails/matchers/active_job.rb', line 316 def have_enqueued_job(job = nil) check_active_job_adapter - ActiveJob::HaveEnqueuedJob.new(job) + ActiveJob::HaveEnqueuedJob.new(job) end
- - (Object) have_enqueued_mail(mailer_class, mail_method_name) + #have_enqueued_mail(mailer_class = nil, mail_method_name = nil) ⇒ Object @@ -656,6 +908,14 @@
expect { MyMailer.welcome(user).deliver_later +}.to have_enqueued_mail + +expect { + MyMailer.welcome(user).deliver_later +}.to have_enqueued_mail(MyMailer) + +expect { + MyMailer.welcome(user).deliver_later }.to have_enqueued_mail(MyMailer, :welcome) # Using alias @@ -693,14 +953,14 @@
-166 -167 -168
+187 +188 +189- @@ -711,7 +971,7 @@# File 'lib/rspec/rails/matchers/have_enqueued_mail.rb', line 166 +
# File 'lib/rspec/rails/matchers/have_enqueued_mail.rb', line 187 -def have_enqueued_mail(mailer_class, mail_method_name) +def have_enqueued_mail(mailer_class = nil, mail_method_name = nil) HaveEnqueuedMail.new(mailer_class, mail_method_name) end
- - (Object) have_http_status(target) + #have_http_status(target) ⇒ Object @@ -792,31 +1052,177 @@
-375 -376 -377 -378
+378 +379 +380 +381 +382- # File 'lib/rspec/rails/matchers/have_http_status.rb', line 375 +
# File 'lib/rspec/rails/matchers/have_http_status.rb', line 378 def have_http_status(target) raise ArgumentError, "Invalid HTTP status: nil" unless target - HaveHttpStatus.matcher_for_status(target) + + HaveHttpStatus.matcher_for_status(target) end
++ ++ + #have_performed_job(job = nil) ⇒ Object + + + + Also known as: + perform_job + + + + +
++++Passes if a job has been performed inside block. May chain at_least, at_most or exactly to specify a number of times.
+ ++ +++ + +Examples:
+ + +
+ +expect { + perform_jobs { HeavyLiftingJob.perform_later } +}.to have_performed_job + +expect { + perform_jobs { + HelloJob.perform_later + HeavyLiftingJob.perform_later + } +}.to have_performed_job(HelloJob).exactly(:once) + +expect { + perform_jobs { 3.times { HelloJob.perform_later } } +}.to have_performed_job(HelloJob).at_least(2).times + +expect { + perform_jobs { HelloJob.perform_later } +}.to have_performed_job(HelloJob).at_most(:twice) + +expect { + perform_jobs { + HelloJob.perform_later + HeavyLiftingJob.perform_later + } +}.to have_performed_job(HelloJob).and have_performed_job(HeavyLiftingJob) + +expect { + perform_jobs { + HelloJob.set(wait_until: Date.tomorrow.noon, queue: "low").perform_later(42) + } +}.to have_performed_job.with(42).on_queue("low").at(Date.tomorrow.noon)
+
++ ++ ++ + +391 +392 +393 +394
++ +# File 'lib/rspec/rails/matchers/active_job.rb', line 391 + +def have_performed_job(job = nil) + check_active_job_adapter + ActiveJob::HavePerformedJob.new(job) +end
+++ ++ + #receive_inbound_email(message) ⇒ Object + + + + + +
++++Passes if the given inbound email would be routed to the subject inbox.
+ +++ +Parameters:
+-
+
+
-
+
+ message
+
+
+ (Hash, Mail::Message)
+
+
+
+ —
+ + +
a mail message or hash of +attributes used to build one
+
+
- Generated on Tue Oct 8 11:39:25 2019 by + ++
++ ++ ++ + +59 +60 +61
++ +# File 'lib/rspec/rails/matchers/action_mailbox.rb', line 59 + +def receive_inbound_email(message) + ActionMailbox::ReceiveInboundEmail.new(message) +end
++ Generated on Thu Jan 2 10:07:34 2020 by yard - 0.8.7.6 (ruby-2.6.5). + 0.9.22 (ruby-2.7.0).++ Module: RSpec::Rails::Matchers::ActionCable + + — Documentation by YARD 0.9.22 + + + + + + + + + + + + + + + + + + + ++ + ++ ++ + ++ + \ No newline at end of file diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/ActionCable/HaveStream.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/ActionCable/HaveStream.html new file mode 100644 index 000000000..060d40b77 --- /dev/null +++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/ActionCable/HaveStream.html @@ -0,0 +1,497 @@ + + + + ++ +Module: RSpec::Rails::Matchers::ActionCable + + + Private +
++ + + + + + + + + + + ++ +-
+
- Defined in: +
- lib/rspec/rails/matchers/action_cable.rb,
+ lib/rspec/rails/matchers/action_cable/have_streams.rb,
lib/rspec/rails/matchers/action_cable/have_broadcasted_to.rb +
+
Overview
+++++ This module is part of a private API. + You should avoid using this module if possible, as it may be removed or be changed in the future. +
+Namespace for various implementations of ActionCable features
+ + ++ + +Defined Under Namespace
++ + + + + Classes: HaveStream + + +
+ + + + + + + + + ++ Generated on Thu Jan 2 10:07:34 2020 by + yard + 0.9.22 (ruby-2.7.0). ++ + + ++ Class: RSpec::Rails::Matchers::ActionCable::HaveStream + + — Documentation by YARD 0.9.22 + + + + + + + + + + + + + + + + + + + ++ + ++ +++ + \ No newline at end of file diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/ActionMailbox.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/ActionMailbox.html new file mode 100644 index 000000000..05ac9cdb7 --- /dev/null +++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/ActionMailbox.html @@ -0,0 +1,131 @@ + + + + ++ + ++ ++ + + + + + ++ ++ +Class: RSpec::Rails::Matchers::ActionCable::HaveStream + + + Private +
++ ++ +-
+
- Inherits: +
-
+ Matchers::BuiltIn::BaseMatcher
+
+
-
+
- Object + +
- Matchers::BuiltIn::BaseMatcher + +
- RSpec::Rails::Matchers::ActionCable::HaveStream + +
+
-
+
- Defined in: +
- lib/rspec/rails/matchers/action_cable/have_streams.rb +
Overview
+++++ This class is part of a private API. + You should avoid using this class if possible, as it may be removed or be changed in the future. +
+Provides the implementation for
+ + +have_stream
,have_stream_for
, andhave_stream_from
. +Not intended to be instantiated directly.+ + ++ + + + + + + ++ Instance Method Summary + collapse +
+ +-
+
+
- + + + #does_not_match?(subscription) ⇒ Boolean + + + + + + + + + + + private + + + + + + + +
- + + + #failure_message ⇒ String + + + + + + + + + + + private + + + + + + + +
- + + + #failure_message_when_negated ⇒ String + + + + + + + + + + + private + + + + + + + +
- + + + #matches?(subscription) ⇒ Boolean + + + + + + + + + + + private + + + + + + + +
++ +Instance Method Details
+ + +++ ++ + #does_not_match?(subscription) ⇒ Boolean + + + + + +
+++++ This method is part of a private API. + You should avoid using this method if possible, as it may be removed or be changed in the future. +
+ + ++ +Returns:
+-
+
+
- + + + (Boolean) + + + + + +
+
++ ++ ++ + +31 +32 +33
++ +# File 'lib/rspec/rails/matchers/action_cable/have_streams.rb', line 31 + +def does_not_match?(subscription) + !match(subscription) +end
+++ ++ + #failure_message ⇒ String + + + + + +
+++++ This method is part of a private API. + You should avoid using this method if possible, as it may be removed or be changed in the future. +
+ + ++ +Returns:
+-
+
+
- + + + (String) + + + + + +
+
++ ++ ++ + +11 +12 +13
++ +# File 'lib/rspec/rails/matchers/action_cable/have_streams.rb', line 11 + +def failure_message + "expected to have #{base_message}" +end
+++ ++ + #failure_message_when_negated ⇒ String + + + + + +
+++++ This method is part of a private API. + You should avoid using this method if possible, as it may be removed or be changed in the future. +
+ + ++ +Returns:
+-
+
+
- + + + (String) + + + + + +
+
++ ++ ++ + +17 +18 +19
++ +# File 'lib/rspec/rails/matchers/action_cable/have_streams.rb', line 17 + +def failure_message_when_negated + "expected not to have #{base_message}" +end
+++ ++ + #matches?(subscription) ⇒ Boolean + + + + + +
+++++ This method is part of a private API. + You should avoid using this method if possible, as it may be removed or be changed in the future. +
+ + ++ +Returns:
+-
+
+
- + + + (Boolean) + + + + + +
Raises:
+-
+
+
- + + + (ArgumentError) + + + + + +
+
++ ++ ++ + +23 +24 +25 +26 +27
++ +# File 'lib/rspec/rails/matchers/action_cable/have_streams.rb', line 23 + +def matches?(subscription) + raise(ArgumentError, "have_streams is used for negated expectations only") if no_expected? + + match(subscription) +end
++ Generated on Thu Jan 2 10:07:35 2020 by + yard + 0.9.22 (ruby-2.7.0). ++ + + ++ Module: RSpec::Rails::Matchers::ActionMailbox + + — Documentation by YARD 0.9.22 + + + + + + + + + + + + + + + + + + + ++ + ++ ++ + ++ + \ No newline at end of file diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/ActiveJob.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/ActiveJob.html index 69f769702..c37fea36f 100644 --- a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/ActiveJob.html +++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/ActiveJob.html @@ -1,90 +1,88 @@ - - + ++ +Module: RSpec::Rails::Matchers::ActionMailbox + + + Private +
++ + + + + + + + + + + ++ +-
+
- Defined in: +
- lib/rspec/rails/matchers/action_mailbox.rb +
Overview
+++++ This module is part of a private API. + You should avoid using this module if possible, as it may be removed or be changed in the future. +
+Namespace for various implementations of ActionMailbox features
+ + ++ + ++ + + + + + + + ++ Generated on Thu Jan 2 10:07:34 2020 by + yard + 0.9.22 (ruby-2.7.0). ++ + + +Module: RSpec::Rails::Matchers::ActiveJob - — Documentation by YARD 0.8.7.6 + — Documentation by YARD 0.9.22 - + - + - + - - + - + --++ + ++ +++ --+ - -- - + +Module: RSpec::Rails::Matchers::ActiveJob +
Module: RSpec::Rails::Matchers::ActiveJob Private
++ --
-
-
+
+
+
-
- Defined in: -
- lib/rspec/rails/matchers/active_job.rb +
- Defined in: +
- lib/rspec/rails/matchers/active_job.rb +
-
+
Overview
@@ -111,10 +109,10 @@Overview
- Generated on Tue Oct 8 11:39:25 2019 by +- + \ No newline at end of file diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/BaseMatcher.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/BaseMatcher.html index f198b3dc7..6aa034faf 100644 --- a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/BaseMatcher.html +++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/BaseMatcher.html @@ -1,80 +1,75 @@ - - + ++ Generated on Thu Jan 2 10:07:34 2020 by yard - 0.8.7.6 (ruby-2.6.5). + 0.9.22 (ruby-2.7.0).+Class: RSpec::Rails::Matchers::BaseMatcher - — Documentation by YARD 0.8.7.6 + — Documentation by YARD 0.9.22 - + - + - + - - + - + --++ + ++ +++ -- - -+ - -+ +Class: RSpec::Rails::Matchers::BaseMatcher +
Class: RSpec::Rails::Matchers::BaseMatcher
- --
+
- Inherits: -
-
+
-
+
- Inherits: +
-
Object
-
@@ -85,25 +80,30 @@
-
+
+
+
-
-
- - Includes: -
- Matchers::Composable, DefaultFailureMessages - - +
- Includes: +
- Matchers::Composable, DefaultFailureMessages +
- Defined in: -
- lib/rspec/rails/matchers/base_matcher.rb - - + + + + +
- Defined in: +
- lib/rspec/rails/matchers/base_matcher.rb +
- UNDEFINED =
@@ -166,7 +170,7 @@
Constant Summary
Instance Method Summary - (collapse) + collapse
-
@@ -174,7 +178,7 @@
-
- - (String) description
+ #description ⇒ String
@@ -197,7 +201,7 @@
- - - (Boolean) diffable? + #diffable? ⇒ Boolean @@ -220,7 +224,7 @@
- - - (Boolean) expects_call_stack_jump? + #expects_call_stack_jump? ⇒ Boolean @@ -242,7 +246,7 @@
- - - (BaseMatcher) initialize(expected = UNDEFINED) + #initialize(expected = UNDEFINED) ⇒ BaseMatcher @@ -267,7 +271,7 @@
- - - (Object) match_unless_raises(*exceptions) + #match_unless_raises(*exceptions) ⇒ Object @@ -290,7 +294,7 @@
- - - (Boolean) matches?(actual) + #matches?(actual) ⇒ Boolean @@ -313,7 +317,7 @@
- - - (Boolean) supports_block_expectations? + #supports_block_expectations? ⇒ Boolean @@ -360,7 +364,7 @@
Constructor Details
- - (BaseMatcher) initialize(expected = UNDEFINED) + #initialize(expected = UNDEFINED) ⇒ BaseMatcher @@ -368,7 +372,7 @@
-@@ -389,8 +393,8 @@Returns a new instance of BaseMatcher
+Returns a new instance of BaseMatcher.
# File 'lib/rspec/rails/matchers/base_matcher.rb', line 19 -def initialize(expected = UNDEFINED) - @expected = expected unless UNDEFINED.equal?(expected) +def initialize(expected = UNDEFINED) + @expected = expected unless UNDEFINED.equal?(expected) end
Instance Method Details
- - (String) description + #description ⇒ String @@ -456,8 +460,8 @@
# File 'lib/rspec/rails/matchers/base_matcher.rb', line 51 def description - desc = RSpec::Matchers::EnglishPhrasing.split_words(self.class.matcher_name) - desc << RSpec::Matchers::EnglishPhrasing.list(@expected) if defined?(@expected) + desc = RSpec::Matchers::EnglishPhrasing.split_words(self.class.matcher_name) + desc << RSpec::Matchers::EnglishPhrasing.list(@expected) if defined?(@expected) desc end
@@ -468,7 +472,7 @@- - (Boolean) diffable? + #diffable? ⇒ Boolean @@ -526,7 +530,7 @@
- - (Boolean) expects_call_stack_jump? + #expects_call_stack_jump? ⇒ Boolean @@ -582,7 +586,7 @@
- - (Object) match_unless_raises(*exceptions) + #match_unless_raises(*exceptions) ⇒ Object @@ -642,7 +646,7 @@
- - (Boolean) matches?(actual) + #matches?(actual) ⇒ Boolean @@ -703,7 +707,7 @@
- - (Boolean) supports_block_expectations? + #supports_block_expectations? ⇒ Boolean @@ -763,10 +767,10 @@
- Generated on Tue Oct 8 11:39:26 2019 by +- + \ No newline at end of file diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/BaseMatcher/DefaultFailureMessages.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/BaseMatcher/DefaultFailureMessages.html index d9337b3a9..e78cae4ba 100644 --- a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/BaseMatcher/DefaultFailureMessages.html +++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/BaseMatcher/DefaultFailureMessages.html @@ -1,94 +1,93 @@ - - + ++ Generated on Thu Jan 2 10:07:35 2020 by yard - 0.8.7.6 (ruby-2.6.5). + 0.9.22 (ruby-2.7.0).+Module: RSpec::Rails::Matchers::BaseMatcher::DefaultFailureMessages - — Documentation by YARD 0.8.7.6 + — Documentation by YARD 0.9.22 - + - + - + - - + - + --++ + ++ +++ --+ - -- - + +Module: RSpec::Rails::Matchers::BaseMatcher::DefaultFailureMessages +
Module: RSpec::Rails::Matchers::BaseMatcher::DefaultFailureMessages Private
++ --
-
-
-
- Included in: -
- RSpec::Rails::Matchers::BaseMatcher - + +
- Included in: +
- RSpec::Rails::Matchers::BaseMatcher +
- Defined in: -
- lib/rspec/rails/matchers/base_matcher.rb + + +
- Defined in: +
- lib/rspec/rails/matchers/base_matcher.rb +
-
+
-
+
Overview
@@ -114,7 +113,7 @@Overview
Instance Method Summary - (collapse) + collapse
-
@@ -122,7 +121,7 @@
-
- - (String) failure_message
+ #failure_message ⇒ String
@@ -145,7 +144,7 @@
- - - (String) failure_message_when_negated + #failure_message_when_negated ⇒ String @@ -177,7 +176,7 @@
Instance Method Details
- - (String) failure_message + #failure_message ⇒ String @@ -218,12 +217,12 @@
-158 -159 -160
+151 +152 +153- # File 'lib/rspec/rails/matchers/base_matcher.rb', line 158 +
# File 'lib/rspec/rails/matchers/base_matcher.rb', line 151 def failure_message "expected #{description_of @actual} to #{description}".dup @@ -236,7 +235,7 @@
- - (String) failure_message_when_negated + #failure_message_when_negated ⇒ String @@ -277,12 +276,12 @@
-167 -168 -169
+160 +161 +162- @@ -431,7 +430,7 @@# File 'lib/rspec/rails/matchers/base_matcher.rb', line 167 +
# File 'lib/rspec/rails/matchers/base_matcher.rb', line 160 def failure_message_when_negated "expected #{description_of @actual} not to #{description}".dup @@ -296,10 +295,10 @@
-
- Generated on Tue Oct 8 11:39:26 2019 by +- + \ No newline at end of file diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/BeANew.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/BeANew.html index c431f993f..78284ee25 100644 --- a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/BeANew.html +++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/BeANew.html @@ -1,80 +1,75 @@ - - + ++ Generated on Thu Jan 2 10:07:34 2020 by yard - 0.8.7.6 (ruby-2.6.5). + 0.9.22 (ruby-2.7.0).+Class: RSpec::Rails::Matchers::BeANew - — Documentation by YARD 0.8.7.6 + — Documentation by YARD 0.9.22 - + - + - + - - + - + --++ + ++ +++ -- - -+ - -+ +Class: RSpec::Rails::Matchers::BeANew +
Class: RSpec::Rails::Matchers::BeANew Private
- --
+
- Inherits: -
-
+
-
+
- Inherits: +
-
BaseMatcher
-
@@ -87,21 +82,25 @@
-
+
+
+
-
-
- - Defined in: -
- lib/rspec/rails/matchers/be_a_new.rb + + + + +
- Defined in: +
- lib/rspec/rails/matchers/be_a_new.rb +
-
- - (Object) with(expected_attributes)
+ #with(expected_attributes) ⇒ Object
@@ -211,7 +207,7 @@
Instance Method Details
- - (Object) with(expected_attributes) + #with(expected_attributes) ⇒ Object @@ -260,10 +256,10 @@
- Generated on Tue Oct 8 11:39:26 2019 by +- + \ No newline at end of file diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/HaveHttpStatus.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/HaveHttpStatus.html index 437638dce..21fad668c 100644 --- a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/HaveHttpStatus.html +++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/HaveHttpStatus.html @@ -1,94 +1,93 @@ - - + ++ Generated on Thu Jan 2 10:07:35 2020 by yard - 0.8.7.6 (ruby-2.6.5). + 0.9.22 (ruby-2.7.0).+Module: RSpec::Rails::Matchers::HaveHttpStatus - — Documentation by YARD 0.8.7.6 + — Documentation by YARD 0.9.22 - + - + - + - - + - + --++ + ++ +++ -- - -+ - -+ +Module: RSpec::Rails::Matchers::HaveHttpStatus +
Module: RSpec::Rails::Matchers::HaveHttpStatus Private
++ --
-
-
-
- Included in: -
- GenericStatus, NumericCode, SymbolicStatus - + + +
- Included in: +
- GenericStatus, NumericCode, SymbolicStatus +
- Defined in: -
- lib/rspec/rails/matchers/have_http_status.rb +
- Defined in: +
- lib/rspec/rails/matchers/have_http_status.rb +
-
+
-
+
Overview
@@ -124,7 +123,7 @@Overview
Class Method Summary - (collapse) + collapse
-
@@ -132,7 +131,7 @@
-
- + (ActionDispatch::TestResponse) as_test_response(obj)
+ .as_test_response(obj) ⇒ ActionDispatch::TestResponse
@@ -155,7 +154,7 @@
- - + (Object) matcher_for_status(target) + .matcher_for_status(target) ⇒ Object @@ -179,7 +178,7 @@
Instance Method Summary - (collapse) + collapse
-
@@ -187,7 +186,7 @@
-
- - (String?) invalid_response_type_message
+ #invalid_response_type_message ⇒ String?
@@ -219,7 +218,7 @@
Class Method Details
- + (ActionDispatch::TestResponse) as_test_response(obj) + .as_test_response(obj) ⇒ ActionDispatch::TestResponse @@ -332,7 +331,7 @@
- + (Object) matcher_for_status(target) + .matcher_for_status(target) ⇒ Object @@ -409,12 +408,12 @@
# File 'lib/rspec/rails/matchers/have_http_status.rb', line 19 def self.matcher_for_status(target) - if GenericStatus.valid_statuses.include?(target) - GenericStatus.new(target) + if GenericStatus.valid_statuses.include?(target) + GenericStatus.new(target) elsif Symbol === target - SymbolicStatus.new(target) + SymbolicStatus.new(target) else - NumericCode.new(target) + NumericCode.new(target) end end
- - + (Object) matcher_for_status(target) + .matcher_for_status(target) ⇒ Object @@ -179,7 +178,7 @@
--
+
Overview
@@ -125,9 +124,6 @@Overview
Constant Summary
- -Constant Summary
@@ -143,7 +139,7 @@Constants inherited
Instance Method Summary - (collapse) + collapse
-
@@ -151,7 +147,7 @@
Instance Method Details
- - (String?) invalid_response_type_message + #invalid_response_type_message ⇒ String? @@ -444,7 +443,7 @@
You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a formatted failure message if -
+@invalid_response
is present,nil
otherwise@invalid_response
is present,nil
otherwise.61 62 63 -64 +64 +65
# File 'lib/rspec/rails/matchers/have_http_status.rb', line 60 def invalid_response_type_message return unless @invalid_response + "expected a response object, but an instance of " \ "#{@invalid_response.class} was received" end
@@ -499,10 +500,10 @@-
- Generated on Tue Oct 8 11:39:26 2019 by +- + \ No newline at end of file diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/HaveHttpStatus/GenericStatus.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/HaveHttpStatus/GenericStatus.html index 5c3682b63..789329f60 100644 --- a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/HaveHttpStatus/GenericStatus.html +++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/HaveHttpStatus/GenericStatus.html @@ -1,80 +1,75 @@ - - + ++ Generated on Thu Jan 2 10:07:34 2020 by yard - 0.8.7.6 (ruby-2.6.5). + 0.9.22 (ruby-2.7.0).+Class: RSpec::Rails::Matchers::HaveHttpStatus::GenericStatus - — Documentation by YARD 0.8.7.6 + — Documentation by YARD 0.9.22 - + - + - + - - + - + --++ + ++ +++ --+ - -- - + +Class: RSpec::Rails::Matchers::HaveHttpStatus::GenericStatus +
Class: RSpec::Rails::Matchers::HaveHttpStatus::GenericStatus Private
- --
+
- Inherits: -
-
+
-
+
- Inherits: +
-
BaseMatcher
-
@@ -87,25 +82,30 @@
-
+
+
+
-
-
- - Includes: -
- RSpec::Rails::Matchers::HaveHttpStatus - - +
- Includes: +
- RSpec::Rails::Matchers::HaveHttpStatus +
- Defined in: -
- lib/rspec/rails/matchers/have_http_status.rb +
- Defined in: +
- lib/rspec/rails/matchers/have_http_status.rb +
-
- + (Array<Symbol>) valid_statuses
+ .valid_statuses ⇒ Array<Symbol>
@@ -195,7 +192,7 @@
Instance Method Summary - (collapse) + collapse
-
@@ -203,7 +200,7 @@
-
- - (String) description
+ #description ⇒ String
@@ -225,7 +222,7 @@
- - - (String) failure_message + #failure_message ⇒ String @@ -248,7 +245,7 @@
- - - (String) failure_message_when_negated + #failure_message_when_negated ⇒ String @@ -271,7 +268,7 @@
- - - (GenericStatus) initialize(type) + #initialize(type) ⇒ GenericStatus @@ -296,7 +293,7 @@
- - - (Boolean) matches?(response) + #matches?(response) ⇒ Boolean @@ -360,7 +357,7 @@
Constructor Details
- - (GenericStatus) initialize(type) + #initialize(type) ⇒ GenericStatus @@ -372,7 +369,7 @@
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future. -
Returns a new instance of GenericStatus
+Returns a new instance of GenericStatus.
-253 -254 255 256 257 258 259 -260
+260 +261 +262 +263 - - - (String) failure_message + #failure_message ⇒ String @@ -248,7 +245,7 @@
-
- - (String) description
+ #description ⇒ String
@@ -225,7 +222,7 @@
--
+
-
+
Overview
@@ -145,9 +145,6 @@Overview
Constant Summary
- -Constant Summary
@@ -163,7 +160,7 @@Constants inherited
Class Method Summary - (collapse) + collapse
-
@@ -171,7 +168,7 @@
- # File 'lib/rspec/rails/matchers/have_http_status.rb', line 253 +
# File 'lib/rspec/rails/matchers/have_http_status.rb', line 255 def initialize(type) unless self.class.valid_statuses.include?(type) raise ArgumentError, "Invalid generic HTTP status: #{type.inspect}" end + @expected = type @actual = nil @invalid_response = nil @@ -421,7 +420,7 @@
Class Method Details
- + (Array<Symbol>) valid_statuses + .valid_statuses ⇒ Array<Symbol> @@ -434,7 +433,7 @@
You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns of status codes which represent a HTTP status -code "group"
+code "group".-245 -246 247 248 249 250 -251
+251 +252 +253- # File 'lib/rspec/rails/matchers/have_http_status.rb', line 245 +
# File 'lib/rspec/rails/matchers/have_http_status.rb', line 247 def self.valid_statuses [ @@ -505,7 +504,7 @@
Instance Method Details
- - (String) description + #description ⇒ String @@ -543,12 +542,12 @@
-274 -275 -276
+277 +278 +279- # File 'lib/rspec/rails/matchers/have_http_status.rb', line 274 +
# File 'lib/rspec/rails/matchers/have_http_status.rb', line 277 def description "respond with #{type_message}" @@ -561,7 +560,7 @@
- - (String) failure_message + #failure_message ⇒ String @@ -573,7 +572,7 @@
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future. -
Returns explaining why the match failed
+Returns explaining why the match failed.
-279 -280 -281 -282
+282 +283 +284 +285- # File 'lib/rspec/rails/matchers/have_http_status.rb', line 279 +
# File 'lib/rspec/rails/matchers/have_http_status.rb', line 282 def failure_message invalid_response_type_message || @@ -624,7 +623,7 @@
- - (String) failure_message_when_negated + #failure_message_when_negated ⇒ String @@ -636,7 +635,7 @@
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future. -
Returns explaining why the match failed
+Returns explaining why the match failed.
-285 -286 -287 -288
+288 +289 +290 +291- # File 'lib/rspec/rails/matchers/have_http_status.rb', line 285 +
# File 'lib/rspec/rails/matchers/have_http_status.rb', line 288 def failure_message_when_negated invalid_response_type_message || @@ -687,7 +686,7 @@
- - (Boolean) matches?(response) + #matches?(response) ⇒ Boolean @@ -700,7 +699,7 @@
You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns
+thetrue
if Rack's associated numeric HTTP code matched -theresponse
code or the named response statusresponse
code or the named response status.-264 -265 -266 267 268 269 270 -271
+271 +272 +273 +274- # File 'lib/rspec/rails/matchers/have_http_status.rb', line 264 +
# File 'lib/rspec/rails/matchers/have_http_status.rb', line 267 def matches?(response) test_response = as_test_response(response) @@ -761,10 +760,10 @@
-
- Generated on Tue Oct 8 11:39:26 2019 by +- + \ No newline at end of file diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/HaveHttpStatus/NumericCode.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/HaveHttpStatus/NumericCode.html index 3bb67e584..2d12d8a85 100644 --- a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/HaveHttpStatus/NumericCode.html +++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/HaveHttpStatus/NumericCode.html @@ -1,80 +1,75 @@ - - + ++ Generated on Thu Jan 2 10:07:35 2020 by yard - 0.8.7.6 (ruby-2.6.5). + 0.9.22 (ruby-2.7.0).+Class: RSpec::Rails::Matchers::HaveHttpStatus::NumericCode - — Documentation by YARD 0.8.7.6 + — Documentation by YARD 0.9.22 - + - + - + - - + - + --++ + ++ +++ -- - -+ - -+ +Class: RSpec::Rails::Matchers::HaveHttpStatus::NumericCode +
Class: RSpec::Rails::Matchers::HaveHttpStatus::NumericCode Private
- --
+
- Inherits: -
-
+
-
+
- Inherits: +
-
BaseMatcher
-
@@ -87,25 +82,30 @@
-
+
+
+
-
-
- - Includes: -
- RSpec::Rails::Matchers::HaveHttpStatus - - +
- Includes: +
- RSpec::Rails::Matchers::HaveHttpStatus +
- Defined in: -
- lib/rspec/rails/matchers/have_http_status.rb - - + + + + +
- Defined in: +
- lib/rspec/rails/matchers/have_http_status.rb +
-
- - (String) description
+ #description ⇒ String
@@ -188,7 +185,7 @@
- - - (String) failure_message + #failure_message ⇒ String @@ -211,7 +208,7 @@
- - - (String) failure_message_when_negated + #failure_message_when_negated ⇒ String @@ -234,7 +231,7 @@
- - - (NumericCode) initialize(code) + #initialize(code) ⇒ NumericCode @@ -259,7 +256,7 @@
- - - (Boolean) matches?(response) + #matches?(response) ⇒ Boolean @@ -323,7 +320,7 @@
Constructor Details
- - (NumericCode) initialize(code) + #initialize(code) ⇒ NumericCode @@ -335,7 +332,7 @@
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future. -
Returns a new instance of NumericCode
+Returns a new instance of NumericCode.
-79 80 81 82 -83
+83 +84 - - - (String) failure_message + #failure_message ⇒ String @@ -211,7 +208,7 @@
--
+
-
+
Overview
@@ -140,9 +140,6 @@Overview
Constant Summary
- -Constant Summary
@@ -158,7 +155,7 @@Constants inherited
Instance Method Summary - (collapse) + collapse
-
@@ -166,7 +163,7 @@
- # File 'lib/rspec/rails/matchers/have_http_status.rb', line 79 +
# File 'lib/rspec/rails/matchers/have_http_status.rb', line 80 def initialize(code) @expected = code.to_i @@ -378,7 +375,7 @@
Instance Method Details
- - (String) description + #description ⇒ String @@ -416,12 +413,12 @@
-97 98 -99
+99 +100- # File 'lib/rspec/rails/matchers/have_http_status.rb', line 97 +
# File 'lib/rspec/rails/matchers/have_http_status.rb', line 98 def description "respond with numeric status code #{expected}" @@ -434,7 +431,7 @@
- - (String) failure_message + #failure_message ⇒ String @@ -446,7 +443,7 @@
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future. -
Returns explaining why the match failed
+Returns explaining why the match failed.
-102 103 104 105 -106
+106 +107- # File 'lib/rspec/rails/matchers/have_http_status.rb', line 102 +
# File 'lib/rspec/rails/matchers/have_http_status.rb', line 103 def failure_message invalid_response_type_message || @@ -499,7 +496,7 @@
- - (String) failure_message_when_negated + #failure_message_when_negated ⇒ String @@ -511,7 +508,7 @@
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future. -
Returns explaining why the match failed
+Returns explaining why the match failed.
-109 110 111 112 -113
+113 +114- # File 'lib/rspec/rails/matchers/have_http_status.rb', line 109 +
# File 'lib/rspec/rails/matchers/have_http_status.rb', line 110 def failure_message_when_negated invalid_response_type_message || @@ -564,7 +561,7 @@
- - (Boolean) matches?(response) + #matches?(response) ⇒ Boolean @@ -576,7 +573,7 @@
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future. -
Returns
+true
if the numeric code matched theresponse
codeReturns
true
if the numeric code matched theresponse
code.-87 88 89 90 91 92 93 -94
+94 +95- # File 'lib/rspec/rails/matchers/have_http_status.rb', line 87 +
# File 'lib/rspec/rails/matchers/have_http_status.rb', line 88 def matches?(response) test_response = as_test_response(response) @@ -655,10 +652,10 @@
-
- Generated on Tue Oct 8 11:39:26 2019 by +- + \ No newline at end of file diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/HaveHttpStatus/SymbolicStatus.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/HaveHttpStatus/SymbolicStatus.html index 13a57aaba..b9ec7303b 100644 --- a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/HaveHttpStatus/SymbolicStatus.html +++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/HaveHttpStatus/SymbolicStatus.html @@ -1,80 +1,75 @@ - - + ++ Generated on Thu Jan 2 10:07:35 2020 by yard - 0.8.7.6 (ruby-2.6.5). + 0.9.22 (ruby-2.7.0).+Class: RSpec::Rails::Matchers::HaveHttpStatus::SymbolicStatus - — Documentation by YARD 0.8.7.6 + — Documentation by YARD 0.9.22 - + - + - + - - + - + --++ + ++ +++ -- - -+ - -+ +Class: RSpec::Rails::Matchers::HaveHttpStatus::SymbolicStatus +
Class: RSpec::Rails::Matchers::HaveHttpStatus::SymbolicStatus Private
- --
+
- Inherits: -
-
+
-
+
- Inherits: +
-
BaseMatcher
-
@@ -87,25 +82,30 @@
-
+
+
+
+
-
-
- - Includes: -
- RSpec::Rails::Matchers::HaveHttpStatus - - +
- Includes: +
- RSpec::Rails::Matchers::HaveHttpStatus +
- Defined in: -
- lib/rspec/rails/matchers/have_http_status.rb +
- Defined in: +
- lib/rspec/rails/matchers/have_http_status.rb +
-
- - (String) description
+ #description ⇒ String
@@ -190,7 +187,7 @@
- - - (String) failure_message + #failure_message ⇒ String @@ -213,7 +210,7 @@
- - - (String) failure_message_when_negated + #failure_message_when_negated ⇒ String @@ -236,7 +233,7 @@
- - - (SymbolicStatus) initialize(status) + #initialize(status) ⇒ SymbolicStatus @@ -261,7 +258,7 @@
- - - (Boolean) matches?(response) + #matches?(response) ⇒ Boolean @@ -325,7 +322,7 @@
Constructor Details
- - (SymbolicStatus) initialize(status) + #initialize(status) ⇒ SymbolicStatus @@ -337,7 +334,7 @@
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future. -
Returns a new instance of SymbolicStatus
+Returns a new instance of SymbolicStatus.
-130 131 132 133 134 -135
+135 +136 - - - (String) failure_message + #failure_message ⇒ String @@ -213,7 +210,7 @@
--
+
-
+
Overview
@@ -142,9 +142,6 @@Overview
Constant Summary
- -Constant Summary
@@ -160,7 +157,7 @@Constants inherited
Instance Method Summary - (collapse) + collapse
-
@@ -168,7 +165,7 @@
- # File 'lib/rspec/rails/matchers/have_http_status.rb', line 130 +
# File 'lib/rspec/rails/matchers/have_http_status.rb', line 131 def initialize(status) @expected_status = status @@ -382,7 +379,7 @@
Instance Method Details
- - (String) description + #description ⇒ String @@ -420,12 +417,12 @@
-150 151 -152
+152 +153- # File 'lib/rspec/rails/matchers/have_http_status.rb', line 150 +
# File 'lib/rspec/rails/matchers/have_http_status.rb', line 151 def description "respond with status code #{pp_expected}" @@ -438,7 +435,7 @@
- - (String) failure_message + #failure_message ⇒ String @@ -450,7 +447,7 @@
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future. -
Returns explaining why the match failed
+Returns explaining why the match failed.
-155 156 157 158 -159
+159 +160- # File 'lib/rspec/rails/matchers/have_http_status.rb', line 155 +
# File 'lib/rspec/rails/matchers/have_http_status.rb', line 156 def failure_message invalid_response_type_message || @@ -503,7 +500,7 @@
- - (String) failure_message_when_negated + #failure_message_when_negated ⇒ String @@ -515,7 +512,7 @@
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future. -
Returns explaining why the match failed
+Returns explaining why the match failed.
-162 163 164 165 -166
+166 +167- # File 'lib/rspec/rails/matchers/have_http_status.rb', line 162 +
# File 'lib/rspec/rails/matchers/have_http_status.rb', line 163 def failure_message_when_negated invalid_response_type_message || @@ -568,7 +565,7 @@
- - (Boolean) matches?(response) + #matches?(response) ⇒ Boolean @@ -581,7 +578,7 @@
You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns
+thetrue
if Rack's associated numeric HTTP code matched -theresponse
coderesponse
code.-140 141 142 143 144 145 146 -147
+147 +148- # File 'lib/rspec/rails/matchers/have_http_status.rb', line 140 +
# File 'lib/rspec/rails/matchers/have_http_status.rb', line 141 def matches?(response) test_response = as_test_response(response) @@ -661,10 +658,10 @@
-
- Generated on Tue Oct 8 11:39:26 2019 by +- + \ No newline at end of file diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/RedirectTo.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/RedirectTo.html index be461f3f1..de2d755b3 100644 --- a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/RedirectTo.html +++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/RedirectTo.html @@ -1,94 +1,93 @@ - - + ++ Generated on Thu Jan 2 10:07:35 2020 by yard - 0.8.7.6 (ruby-2.6.5). + 0.9.22 (ruby-2.7.0).+Module: RSpec::Rails::Matchers::RedirectTo - — Documentation by YARD 0.8.7.6 + — Documentation by YARD 0.9.22 - + - + - + - - + - + --++ + ++ +++ --+ - -- - + +Module: RSpec::Rails::Matchers::RedirectTo +
Module: RSpec::Rails::Matchers::RedirectTo
++ --
-
-
-
- Included in: -
- ControllerExampleGroup, RequestExampleGroup, SystemExampleGroup - + +
- Included in: +
- ControllerExampleGroup, RequestExampleGroup, SystemExampleGroup +
- Defined in: -
- lib/rspec/rails/matchers/redirect_to.rb + + +
- Defined in: +
- lib/rspec/rails/matchers/redirect_to.rb +
-
+
-
+
Overview
@@ -110,7 +109,7 @@Overview
Instance Method Summary - (collapse) + collapse
-
@@ -118,7 +117,7 @@
-
- - (Object) redirect_to(target)
+ #redirect_to(target) ⇒ Object
@@ -150,7 +149,7 @@
Instance Method Details
- - (Object) redirect_to(target) + #redirect_to(target) ⇒ Object @@ -199,10 +198,10 @@
- Generated on Tue Oct 8 11:39:25 2019 by +- + \ No newline at end of file diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/RenderTemplate.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/RenderTemplate.html index 584d1c31f..c56c90482 100644 --- a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/RenderTemplate.html +++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/RenderTemplate.html @@ -1,94 +1,93 @@ - - + ++ Generated on Thu Jan 2 10:07:34 2020 by yard - 0.8.7.6 (ruby-2.6.5). + 0.9.22 (ruby-2.7.0).+Module: RSpec::Rails::Matchers::RenderTemplate - — Documentation by YARD 0.8.7.6 + — Documentation by YARD 0.9.22 - + - + - + - - + - + --++ + ++ +++ --+ - -- - + +Module: RSpec::Rails::Matchers::RenderTemplate +
Module: RSpec::Rails::Matchers::RenderTemplate
++ --
-
-
-
- Included in: -
- ControllerExampleGroup, RequestExampleGroup, SystemExampleGroup, ViewExampleGroup - + +
- Included in: +
- ControllerExampleGroup, RequestExampleGroup, SystemExampleGroup, ViewExampleGroup +
- Defined in: -
- lib/rspec/rails/matchers/have_rendered.rb + + +
- Defined in: +
- lib/rspec/rails/matchers/have_rendered.rb +
-
+
-
+
Overview
@@ -110,7 +109,7 @@Overview
Instance Method Summary - (collapse) + collapse
-
@@ -118,7 +117,7 @@
-
- - (Object) have_rendered(options, message = nil)
+ #have_rendered(options, message = nil) ⇒ Object
@@ -152,7 +151,7 @@
Instance Method Details
- - (Object) have_rendered(options, message = nil) + #have_rendered(options, message = nil) ⇒ Object @@ -186,12 +185,12 @@
-55 56 -57
+57 +58
- # File 'lib/rspec/rails/matchers/have_rendered.rb', line 55 +
# File 'lib/rspec/rails/matchers/have_rendered.rb', line 56 def have_rendered(options, message = nil) RenderTemplateMatcher.new(self, options, message) @@ -205,10 +204,10 @@
-
- Generated on Tue Oct 8 11:39:25 2019 by +- + \ No newline at end of file diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/RoutingMatchers.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/RoutingMatchers.html index ae69469ef..446b921ca 100644 --- a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/RoutingMatchers.html +++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/RoutingMatchers.html @@ -1,98 +1,98 @@ - - + ++ Generated on Thu Jan 2 10:07:34 2020 by yard - 0.8.7.6 (ruby-2.6.5). + 0.9.22 (ruby-2.7.0).+Module: RSpec::Rails::Matchers::RoutingMatchers - — Documentation by YARD 0.8.7.6 + — Documentation by YARD 0.9.22 - + - + - + - - + - + --++ + ++ +++ -- - -+ - -+ +Module: RSpec::Rails::Matchers::RoutingMatchers +
Module: RSpec::Rails::Matchers::RoutingMatchers
++ --
-
-
- Extended by: -
- Matchers::DSL - - +
- Extended by: +
- Matchers::DSL +
- Included in: -
- ControllerExampleGroup, RoutingExampleGroup - + -
- Defined in: -
- lib/rspec/rails/matchers/routing_matchers.rb +
- Included in: +
- ControllerExampleGroup, RoutingExampleGroup +
-
+
-
+
-
+
- Defined in: +
- lib/rspec/rails/matchers/routing_matchers.rb +
Overview
@@ -124,7 +124,7 @@Overview
Instance Method Summary - (collapse) + collapse
-
@@ -132,7 +132,7 @@
-
- - (Object) be_routable
+ #be_routable ⇒ Object
@@ -155,7 +155,7 @@
- - - (Object) route_to(*expected) + #route_to(*expected) ⇒ Object @@ -188,7 +188,7 @@
Instance Method Details
- - (Object) be_routable + #be_routable ⇒ Object @@ -212,9 +212,9 @@
-You can use route helpers provided by rspec-rails.
+expect(:get => "/a/path").to be_routable -expect(:post => "/another/path").to be_routable -expect(:put => "/yet/another/path").to be_routable
expect(get: "/a/path").to be_routable +expect(post: "/another/path").to be_routable +expect(put: "/yet/another/path").to be_routable
- - (Object) route_to(*expected) + #route_to(*expected) ⇒ Object @@ -264,12 +264,12 @@
+expect(get: "/things/special").to route_to("things#special")-expect(:get => "/things/special").to route_to( - :controller => "things", - :action => "special" +expect(get: "/things/special").to route_to( + controller: "things", + action: "special" ) -expect(:get => "/things/special").to route_to("things#special")
See Also:
-
-
- http://api.rubyonrails.org/classes/ActionDispatch/Assertions/RoutingAssertions.html#method-i-assert_recognizes +
- https://api.rubyonrails.org/classes/ActionDispatch/Assertions/RoutingAssertions.html#method-i-assert_recognizes
- - - (Object) route_to(*expected) + #route_to(*expected) ⇒ Object @@ -188,7 +188,7 @@
- Generated on Tue Oct 8 11:39:25 2019 by +- + \ No newline at end of file diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/RoutingMatchers/RouteHelpers.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/RoutingMatchers/RouteHelpers.html index f2c98902f..a488b2fe5 100644 --- a/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/RoutingMatchers/RouteHelpers.html +++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/Matchers/RoutingMatchers/RouteHelpers.html @@ -1,94 +1,93 @@ - - + ++ Generated on Thu Jan 2 10:07:34 2020 by yard - 0.8.7.6 (ruby-2.6.5). + 0.9.22 (ruby-2.7.0).+Module: RSpec::Rails::Matchers::RoutingMatchers::RouteHelpers - — Documentation by YARD 0.8.7.6 + — Documentation by YARD 0.9.22 - + - + - + - - + - + --++ + ++ +++ --+ - -- - + +Module: RSpec::Rails::Matchers::RoutingMatchers::RouteHelpers +
Module: RSpec::Rails::Matchers::RoutingMatchers::RouteHelpers
++ --
-
-
-
- Included in: -
- RoutingExampleGroup - + +
- Included in: +
- RoutingExampleGroup +
- Defined in: -
- lib/rspec/rails/matchers/routing_matchers.rb + + +
- Defined in: +
- lib/rspec/rails/matchers/routing_matchers.rb +
-
+
-
+
Overview
@@ -110,7 +109,7 @@Overview
Instance Method Summary - (collapse) + collapse
-
@@ -118,7 +117,7 @@
-
- - (Object) delete
+ #delete ⇒ Object
@@ -141,7 +140,7 @@
- - - (Object) get + #get ⇒ Object @@ -164,7 +163,7 @@
- - - (Object) head + #head ⇒ Object @@ -187,7 +186,7 @@
- - - (Object) options + #options ⇒ Object @@ -210,7 +209,7 @@
- - - (Object) patch + #patch ⇒ Object @@ -233,7 +232,7 @@
- - - (Object) post + #post ⇒ Object @@ -256,7 +255,7 @@
- - - (Object) put + #put ⇒ Object @@ -288,7 +287,7 @@
Instance Method Details
- - (Object) delete + #delete ⇒ Object @@ -332,7 +331,7 @@
- - (Object) get + #get ⇒ Object @@ -376,7 +375,7 @@
- - (Object) head + #head ⇒ Object @@ -420,7 +419,7 @@
- - (Object) options + #options ⇒ Object @@ -464,7 +463,7 @@
- - (Object) patch + #patch ⇒ Object @@ -508,7 +507,7 @@
- - (Object) post + #post ⇒ Object @@ -552,7 +551,7 @@
- - - (Object) get + #get ⇒ Object @@ -164,7 +163,7 @@
- - - (String) failure_message_when_negated + #failure_message_when_negated ⇒ String @@ -177,7 +176,7 @@
- - - (Boolean) diffable? + #diffable? ⇒ Boolean @@ -220,7 +224,7 @@
-
- - (String) description
+ #description ⇒ String
@@ -197,7 +201,7 @@
--
+
-
+
Overview
@@ -130,8 +130,12 @@Defined Under Namespace
-Constant Summary
++ Constant Summary + collapse +
+
-
- - (Object) visit
+ #visit ⇒ Object
@@ -213,7 +217,7 @@
- - - (Object) routes + #routes ⇒ Object @@ -169,7 +167,7 @@
- - - (Object) method_missing(method, *args, &block) + #method_missing(method, *args, &block) ⇒ Object @@ -339,7 +336,7 @@
- - - (Object) routes + #routes ⇒ Object @@ -190,7 +187,7 @@
--
+
Overview
@@ -123,10 +122,10 @@Overview
- Generated on Tue Oct 8 11:39:26 2019 by +- + \ No newline at end of file diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/ChannelExampleGroup.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/ChannelExampleGroup.html new file mode 100644 index 000000000..461c3dc14 --- /dev/null +++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/ChannelExampleGroup.html @@ -0,0 +1,490 @@ + + + + ++ Generated on Thu Jan 2 10:07:35 2020 by yard - 0.8.7.6 (ruby-2.6.5). + 0.9.22 (ruby-2.7.0).++ Module: RSpec::Rails::ChannelExampleGroup + + — Documentation by YARD 0.9.22 + + + + + + + + + + + + + + + + + + + ++ + ++ ++ + ++ + \ No newline at end of file diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/Configuration.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/Configuration.html index 6c6964d68..d8990cc58 100644 --- a/source/documentation/3.9/rspec-rails/RSpec/Rails/Configuration.html +++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/Configuration.html @@ -1,80 +1,75 @@ - - + ++ +Module: RSpec::Rails::ChannelExampleGroup + + + +
++ + + + ++ +-
+
-
+
-
+
Overview
++++Container module for channel spec functionality. It is only available if +ActionCable has been loaded before it.
+ + ++ + ++ + + + + + + ++ Instance Method Summary + collapse +
+ +-
+
+
++ +Instance Method Details
+ + +++ ++ + #have_rejected_connection ⇒ Object + + + + + +
++++Checks that the connection attempt has been rejected.
+ + ++ +++ + +Examples:
+ + +
+ +expect { connect }.to have_rejected_connection
+
++ ++ ++ + +58 +59 +60
++ +# File 'lib/rspec/rails/example/channel_example_group.rb', line 58 + +def have_rejected_connection + raise_error(::ActionCable::Connection::Authorization::UnauthorizedError) +end
+++ ++ + #have_stream_for(object) ⇒ Object + + + + + +
++++Checks that the channel has been subscribed to a stream for the given model
+ + ++ +++ + +Examples:
+ + +
+ +expect(subscription).to have_stream_for(user)
+
++ ++ ++ + +86 +87 +88 +89
++ +# File 'lib/rspec/rails/example/channel_example_group.rb', line 86 + +def have_stream_for(object) + check_subscribed! + RSpec::Rails::Matchers::ActionCable::HaveStream.new(broadcasting_for(object)) +end
+++ ++ + #have_stream_from(stream) ⇒ Object + + + + + +
++++Checks that the channel has been subscribed to the given stream
+ + ++ +++ + +Examples:
+ + +
+ +expect(subscription).to have_stream_from("chat_1")
+
++ ++ ++ + +76 +77 +78 +79 +80
++ +# File 'lib/rspec/rails/example/channel_example_group.rb', line 76 + +def have_stream_from(stream) + check_subscribed! + + RSpec::Rails::Matchers::ActionCable::HaveStream.new(stream) +end
+++ ++ + #have_streams ⇒ Object + + + + + +
++++Checks that the subscription is subscribed to at least one stream.
+ + ++ +++ + +Examples:
+ + +
+ +expect(subscription).to have_streams
+
++ ++ ++ + +66 +67 +68 +69 +70
++ +# File 'lib/rspec/rails/example/channel_example_group.rb', line 66 + +def have_streams + check_subscribed! + + RSpec::Rails::Matchers::ActionCable::HaveStream.new +end
++ Generated on Thu Jan 2 10:07:35 2020 by + yard + 0.9.22 (ruby-2.7.0). ++ + + +Class: RSpec::Rails::Configuration - — Documentation by YARD 0.8.7.6 + — Documentation by YARD 0.9.22 - + - + - + - - + - + --++ + ++ +++ -- - -+ - -+ +Class: RSpec::Rails::Configuration +
Class: RSpec::Rails::Configuration
- --
+
--
+
Overview
@@ -123,10 +122,10 @@Overview
- Generated on Tue Oct 8 11:39:26 2019 by +- + \ No newline at end of file diff --git a/source/documentation/3.9/rspec-rails/RSpec/Rails/ControllerExampleGroup.html b/source/documentation/3.9/rspec-rails/RSpec/Rails/ControllerExampleGroup.html index f785fc3fb..917762c19 100644 --- a/source/documentation/3.9/rspec-rails/RSpec/Rails/ControllerExampleGroup.html +++ b/source/documentation/3.9/rspec-rails/RSpec/Rails/ControllerExampleGroup.html @@ -1,100 +1,100 @@ - - + ++ Generated on Thu Jan 2 10:07:35 2020 by yard - 0.8.7.6 (ruby-2.6.5). + 0.9.22 (ruby-2.7.0).+Module: RSpec::Rails::ControllerExampleGroup - — Documentation by YARD 0.8.7.6 + — Documentation by YARD 0.9.22 - + - + - + - - + - + --++ + ++ +++ --+ - -- - + +Module: RSpec::Rails::ControllerExampleGroup +
Module: RSpec::Rails::ControllerExampleGroup
++ --
-
-
-
+
-
+
Overview
@@ -117,19 +117,16 @@Overview
-Constant Summary
- - -Instance Attribute Summary (collapse)
+Instance Attribute Summary collapse
- - - (Object) render_views(val) + #render_views(val) ⇒ Object @@ -259,7 +263,7 @@
-
- - (Object) infer_spec_type_from_file_location!
+ #infer_spec_type_from_file_location! ⇒ Object
@@ -236,7 +240,7 @@