lib/neo/rails/presenter/test_helper.rb in neo-rails-0.1.0 vs lib/neo/rails/presenter/test_helper.rb in neo-rails-0.1.1
- old
+ new
@@ -11,11 +11,15 @@
include Singleton
include ActionView::Helpers::TagHelper
include ActionView::Helpers::UrlHelper
include ActionView::Helpers::TranslationHelper
include ActionView::Helpers::NumberHelper
- include Sprockets::Helpers::RailsHelper
- include Sprockets::Helpers::IsolatedHelper
+ 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