lib/rspec/rails/adapters.rb in rspec-rails-4.0.0.beta4 vs lib/rspec/rails/adapters.rb in rspec-rails-4.0.0.rc1
- old
+ new
@@ -144,12 +144,12 @@
module ClassMethods
# Returns the names of assertion methods that we want to expose to
# examples without exposing non-assertion methods in Test::Unit or
# Minitest.
def assertion_method_names
- ::RSpec::Rails::Assertions.
- public_instance_methods.
- select do |m|
+ ::RSpec::Rails::Assertions
+ .public_instance_methods
+ .select do |m|
m.to_s =~ /^(assert|flunk|refute)/
end
end
def define_assertion_delegators