Class: RSpec::RubyContentMatchers::HaveClasses
- Inherits:
-
HaveModules
- Object
- RSpec::RubyContentMatcher
- HaveModules
- RSpec::RubyContentMatchers::HaveClasses
- Defined in:
- lib/code_spec/matchers/multi/have_classes_modules.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 HaveModules
#name, #names, #postfix, #type
Attributes inherited from RSpec::RubyContentMatcher
#alt_end, #content, #content_matches, #end_option
Instance Method Summary collapse
-
#initialize(*names) ⇒ HaveClasses
constructor
A new instance of HaveClasses.
Methods inherited from HaveModules
#failure_message, #is_match?, #matches?, #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(*names) ⇒ HaveClasses
Returns a new instance of HaveClasses.
62 63 64 65 |
# File 'lib/code_spec/matchers/multi/have_classes_modules.rb', line 62 def initialize *names super *names @type = :class end |