1
0
Fork 0
mirror of https://github.com/fog/fog-aws.git synced 2022-11-09 13:50:52 -05:00
fog--fog-aws/tests/helpers/responds_to_helper.rb
David Bishop 62256219f4 Modernize various tests to Ruby 2.x syntax
Also fix up various things that rubocop called out, though not
everything. Mostly whitespace fixes, changing double-quotes to single if
double wasn't required, changing to use ruby 2.x hash syntax where
possible, etc. While tests don't run, they are no more broken than
before (at least, as far as I can tell).
2018-10-16 16:12:42 -06:00

11 lines
255 B
Ruby

module Shindo
class Tests
def responds_to(method_names)
[*method_names].each do |method_name|
tests("#respond_to?(:#{method_name})").returns(true) do
@instance.respond_to?(method_name)
end
end
end
end
end