module RSpec::Rails::MinitestAssertionAdapter::ClassMethods
@private
Public Instance Methods
assertion_method_names()
click to toggle source
Returns the names of assertion methods that we want to expose to examples without exposing non-assertion methods in Test::Unit or Minitest.
# File lib/rspec/rails/adapters.rb, line 200 def assertion_method_names methods = ::RSpec::Rails::Assertions. public_instance_methods. select do |m| m.to_s =~ /^(assert|flunk|refute)/ end methods + test_unit_specific_methods end
define_assertion_delegators()
click to toggle source
# File lib/rspec/rails/adapters.rb, line 209 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
test_unit_specific_methods()
click to toggle source
# File lib/rspec/rails/adapters.rb, line 220 def test_unit_specific_methods [] end