Module: BootstrapHamlHelpers::SpecViewHelpers
- Defined in:
- lib/bootstrap_haml_helpers/spec_view_helpers.rb
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/bootstrap_haml_helpers/spec_view_helpers.rb', line 3 def self.included(base) base.class_eval do helper BootstrapHamlHelpers::ApplicationHelper if respond_to?(:helper) before do if respond_to?(:view) BootstrapHamlHelpers::Component::Base.init_context(view) view.stub(:set_page_title) view.stub(:add_metatag) end end after do BootstrapHamlHelpers::Component::Base.teardown_context if respond_to?(:view) end end end |