lib/rspectacular/plugins/authentication.rb in rspectacular-0.63.0 vs lib/rspectacular/plugins/authentication.rb in rspectacular-0.64.0
- old
+ new
@@ -54,17 +54,17 @@
true
end
authentication_result = authentication_successful ? instance : nil
- authentication_controller_class.send(:define_method, authentication_method) { authentication_successful }
- authentication_controller_class.send(:define_method, current_class_method) { authentication_result }
- authentication_controller_class.send(:helper_method, current_class_method)
- example.example_group_instance.class.let(current_class_method) { authentication_result }
+ authentication_controller_class.__send__(:define_method, authentication_method) { authentication_successful }
+ authentication_controller_class.__send__(:define_method, current_class_method) { authentication_result }
+ authentication_controller_class.__send__(:helper_method, current_class_method)
+ example.example_group_instance.class.let(current_class_method) { authentication_result }
example.run
- authentication_controller_class.send(:remove_method, current_class_method)
+ authentication_controller_class.__send__(:remove_method, current_class_method)
instance.delete unless options.is_a?(Hash) && options[:strategy] == :instance
end
end