Module: Sinclair::Matchers
- Defined in:
- lib/sinclair/matchers.rb,
lib/sinclair/matchers/base.rb,
lib/sinclair/matchers/method_to.rb,
lib/sinclair/matchers/add_method.rb,
lib/sinclair/matchers/add_method_to.rb,
lib/sinclair/matchers/add_class_method.rb,
lib/sinclair/matchers/change_method_on.rb,
lib/sinclair/matchers/add_class_method_to.rb,
lib/sinclair/matchers/add_instance_method.rb,
lib/sinclair/matchers/change_class_method.rb,
lib/sinclair/matchers/add_instance_method_to.rb,
lib/sinclair/matchers/change_class_method_on.rb,
lib/sinclair/matchers/change_instance_method.rb,
lib/sinclair/matchers/change_instance_method_on.rb
Overview
Matchers module will have the DSL to be included in RSpec in order to have access to the matchers
Defined Under Namespace
Modules: MethodTo Classes: AddClassMethod, AddClassMethodTo, AddInstanceMethod, AddInstanceMethodTo, AddMethod, AddMethodTo, Base, ChangeClassMethod, ChangeClassMethodOn, ChangeInstanceMethod, ChangeInstanceMethodOn, ChangeMethodOn
Instance Method Summary collapse
-
#add_class_method(method_name) ⇒ AddClassMethod
DSL to AddClassMethod.
-
#add_method(method_name) ⇒ AddInstanceMethod
DSL to AddInstanceMethod.
-
#change_class_method(method_name) ⇒ ChangeClassMethod
DSL to ChangeClassMethod.
-
#change_method(method_name) ⇒ ChangeInstanceMethod
DSL to ChangeInstanceMethod.
Instance Method Details
#add_class_method(method_name) ⇒ AddClassMethod
DSL to AddClassMethod
38 39 40 |
# File 'lib/sinclair/matchers.rb', line 38 def add_class_method(method_name) Sinclair::Matchers::AddClassMethod.new(method_name) end |
#add_method(method_name) ⇒ AddInstanceMethod
DSL to AddInstanceMethod
29 30 31 |
# File 'lib/sinclair/matchers.rb', line 29 def add_method(method_name) Sinclair::Matchers::AddInstanceMethod.new(method_name) end |
#change_class_method(method_name) ⇒ ChangeClassMethod
DSL to ChangeClassMethod
56 57 58 |
# File 'lib/sinclair/matchers.rb', line 56 def change_class_method(method_name) Sinclair::Matchers::ChangeClassMethod.new(method_name) end |
#change_method(method_name) ⇒ ChangeInstanceMethod
DSL to ChangeInstanceMethod
47 48 49 |
# File 'lib/sinclair/matchers.rb', line 47 def change_method(method_name) Sinclair::Matchers::ChangeInstanceMethod.new(method_name) end |