Class: RSpec::RubyContentMatchers::HaveClass
- Inherits:
-
HaveModule
- Object
- RSpec::RubyContentMatcher
- HaveModule
- RSpec::RubyContentMatchers::HaveClass
- Defined in:
- lib/code_spec/matchers/have_class_module.rb
Constant Summary
Constants inherited from RSpec::RubyContentMatcher
RSpec::RubyContentMatcher::ANY_GROUP, RSpec::RubyContentMatcher::LPAR, RSpec::RubyContentMatcher::OPT_ARGS, RSpec::RubyContentMatcher::OPT_SPACES, RSpec::RubyContentMatcher::Q_ANY_GROUP, RSpec::RubyContentMatcher::RPAR, RSpec::RubyContentMatcher::SPACES
Instance Attribute Summary
Attributes inherited from HaveModule
Attributes inherited from RSpec::RubyContentMatcher
#alt_end, #content, #content_matches, #end_option
Instance Method Summary collapse
-
#initialize(name, postfix) ⇒ HaveClass
constructor
A new instance of HaveClass.
Methods inherited from HaveModule
#failure_message, #negative_failure_message
Methods inherited from RSpec::RubyContentMatcher
#any_args_expr, #args_expr, #args_msg, #comment_end, #debug, #debug?, #debug_content, #display, #display_content, #end_expr, #failure_message, #get_expr, #handle_result, #index, #indexes, #is_match?, #main_expr, #matches?, #negative_failure_message, #opt
Constructor Details
#initialize(name, postfix) ⇒ HaveClass
Returns a new instance of HaveClass.
35 36 37 38 |
# File 'lib/code_spec/matchers/have_class_module.rb', line 35 def initialize(name, postfix) super name, postfix @type = :class end |