Module: TestBelt::Matchers::HaveAccessors::ClassMethods
- Defined in:
- lib/test_belt/matchers/have_accessors.rb
Instance Method Summary collapse
- #have_accessors(*meths) ⇒ Object (also: #have_accessor)
Instance Method Details
#have_accessors(*meths) ⇒ Object Also known as: have_accessor
12 13 14 15 16 17 18 |
# File 'lib/test_belt/matchers/have_accessors.rb', line 12 def have_accessors(*meths) meths.collect do |meth| [ ::TestBelt::Matchers::HaveReaders::Matcher.new(meth), ::TestBelt::Matchers::HaveWriters::Matcher.new(meth) ] end.flatten end |