Sha256: b37c4c59105148655c37dc679394698865ae4b8283ef8a3df93eb85ba13c4d40
Contents?: true
Size: 804 Bytes
Versions: 1
Compression:
Stored size: 804 Bytes
Contents
module Neo module Rails module Presenter module TestHelper def setup Presenter.view_context = FakeViewContext.instance end module_function :setup class FakeViewContext include Singleton include ActionView::Helpers::TagHelper include ActionView::Helpers::UrlHelper include ActionView::Helpers::TranslationHelper include ActionView::Helpers::NumberHelper begin include Sprockets::Rails::Helper rescue LoadError include Sprockets::Helpers::RailsHelper include Sprockets::Helpers::IsolatedHelper end include ::Rails.application.routes.url_helpers attr_accessor :output_buffer end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
neo-rails-0.1.1 | lib/neo/rails/presenter/test_helper.rb |