Module: RSpec::RubyContentMatchers
- Defined in:
- lib/rspec_for_generators/matchers/content/have_class.rb,
lib/rspec_for_generators/matchers/content/have_method.rb,
lib/rspec_for_generators/matchers/content/have_module.rb,
lib/rspec_for_generators/matchers/content/inherit_from.rb,
lib/rspec_for_generators/matchers/content/include_module.rb
Defined Under Namespace
Classes: HaveClass, HaveMethod, HaveModule, IncludeModule, InheritFrom
Instance Method Summary
collapse
Instance Method Details
#have_class(klass) ⇒ Object
32
33
34
|
# File 'lib/rspec_for_generators/matchers/content/have_class.rb', line 32
def have_class(klass)
HaveClass.new(klass)
end
|
#have_method(method, type = nil) ⇒ Object
Also known as:
have_instance_method
41
42
43
|
# File 'lib/rspec_for_generators/matchers/content/have_method.rb', line 41
def have_method(method, type = nil)
HaveMethod.new(method, type)
end
|
#have_module(module_name) ⇒ Object
30
31
32
|
# File 'lib/rspec_for_generators/matchers/content/have_module.rb', line 30
def have_module(module_name)
HaveModule.new(module_name)
end
|
#include_module(module_name) ⇒ Object
32
33
34
|
# File 'lib/rspec_for_generators/matchers/content/include_module.rb', line 32
def include_module(module_name)
IncludeModule.new(module_name)
end
|
#inherit_from(klass) ⇒ Object
29
30
31
|
# File 'lib/rspec_for_generators/matchers/content/inherit_from.rb', line 29
def inherit_from(klass)
InheritFrom.new(klass)
end
|