Sha256: e11df2fe07c87c2039c9989dee81e96913307af1764aeaac92a32c95adaf72e7

Contents?: true

Size: 763 Bytes

Versions: 4

Compression:

Stored size: 763 Bytes

Contents

class Views::HelpersSystemSpec::RailsHelpersWithoutAutomaticHelperAccess < Fortitude::Widgets::Html5
  automatic_helper_access false

  def content
    excitedly_value = begin
      excitedly("great")
    rescue => e
      e.class.name
    end

    three_months_value = begin
      distance_of_time_in_words_to_now(3.months.ago)
    rescue => e
      e.class.name
    end

    million_dollars_value = begin
      number_to_currency(1_000_000.00)
    rescue => e
      e.class.name
    end

    debug_value = begin
      debug(Object.new)
    rescue => e
      e.class.name
    end

    p "Excitedly: #{excitedly_value}"

    p "Three months ago: #{three_months_value}"

    p "A million dollars: #{million_dollars_value}"

    p "debug: #{debug_value}"
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fortitude-0.9.6-java spec/rails/templates/helpers_system_spec/app/views/helpers_system_spec/rails_helpers_without_automatic_helper_access.rb
fortitude-0.9.6 spec/rails/templates/helpers_system_spec/app/views/helpers_system_spec/rails_helpers_without_automatic_helper_access.rb
fortitude-0.9.5-java spec/rails/templates/helpers_system_spec/app/views/helpers_system_spec/rails_helpers_without_automatic_helper_access.rb
fortitude-0.9.5 spec/rails/templates/helpers_system_spec/app/views/helpers_system_spec/rails_helpers_without_automatic_helper_access.rb