Module: RSpec::Rails::MinitestAssertionAdapter::ClassMethods Private
Do not use. This module is for internal use only.
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Extended In:
::RSpec::Rails::ChannelExampleGroup ,
::RSpec::Rails::ControllerExampleGroup ,
::RSpec::Rails::FeatureExampleGroup ,
::RSpec::Rails::FixtureSupport ,
::RSpec::Rails::HelperExampleGroup ,
::RSpec::Rails::JobExampleGroup ,
::RSpec::Rails::MailerExampleGroup ,
::RSpec::Rails::ModelExampleGroup ,
::RSpec::Rails::RailsExampleGroup ,
::RSpec::Rails::RequestExampleGroup ,
::RSpec::Rails::RoutingExampleGroup ,
::RSpec::Rails::SystemExampleGroup ,
::RSpec::Rails::ViewExampleGroup
| |
Defined in: | rspec-rails/lib/rspec/rails/adapters.rb |
Instance Method Summary
-
#assertion_method_names
Internal use only
Returns the names of assertion methods that we want to expose to examples without exposing non-assertion methods in Test::Unit or Minitest.
- #define_assertion_delegators Internal use only
Instance Method Details
#assertion_method_names
Returns the names of assertion methods that we want to expose to examples without exposing non-assertion methods in Test::Unit or Minitest.
# File 'rspec-rails/lib/rspec/rails/adapters.rb', line 148
def assertion_method_names ::RSpec::Rails::Assertions .public_instance_methods .select do |m| m.to_s =~ /^(assert|flunk|refute)/ end end
#define_assertion_delegators
[ GitHub ]# File 'rspec-rails/lib/rspec/rails/adapters.rb', line 156
def define_assertion_delegators assertion_method_names.each do |m| define_method(m.to_sym) do |*args, &block| assertion_delegator.send(m.to_sym, *args, &block) end end end