Module: Obsidian::Rails::HelperTest

Defined in:
lib/obsidian/rails/helper_test.rb

Instance Method Summary collapse

Instance Method Details

#helper_test(helper_under_test = nil) ⇒ Object

include all the fun dependancies needed to test helpers



6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/obsidian/rails/helper_test.rb', line 6

def helper_test helper_under_test = nil
  include ActionView::Helpers::CaptureHelper
  include ActionView::Helpers::DateHelper
  include ActionView::Helpers::UrlHelper 
  include ActionView::Helpers::TextHelper
  include ActionView::Helpers::AssetTagHelper
  include ActionView::Helpers::TagHelper
  include ActionView::Helpers::FormOptionsHelper
  include ActionView::Helpers::FormTagHelper
  include ApplicationHelper
  include helper_under_test if helper_under_test
end