Module: NoFlyList::TestHelper
- Defined in:
- lib/no_fly_list/test_helper.rb
Overview
NoFlyList Test Helper
Include NoFlyList::TestHelper in your test case to get access to the assertion methods.
Instance Method Summary collapse
Instance Method Details
#assert_taggable_record(klass, *contexts) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/no_fly_list/test_helper.rb', line 8 def assert_taggable_record(klass, *contexts) assert klass.respond_to?(:has_tags), "#{klass} does not respond to has_tags" contexts.each do |context| assert klass.new.respond_to?(:"#{context}_list"), "#{klass} does not respond to #{context}_list" end end |