module TestBelt::Matchers::HaveAccessors::ClassMethods

Public Instance Methods

have_accessor(*meths)
Alias for: have_accessors
have_accessors(*meths) click to toggle source
# 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
Also aliased as: have_accessor