/test/shoulda_macros/flockup_view_macros.rb

https://github.com/technicalpickles/flockup · Ruby · 7 lines · 7 code · 0 blank · 0 comment · 0 complexity · cba04dd309c530876bd1eb9dcae6363a MD5 · raw file

  1. Test::Unit::TestCase.class_eval do
  2. def self.should_have_search_form
  3. should_have_form_for 'searches_path' do
  4. assert_select "input[name='q']"
  5. end
  6. end
  7. end