Sha256: 10c5620530a4fb8e4f37f77cbf4e92f206b1427d51ebedd8d708d2e4414f2f36

Contents?: true

Size: 493 Bytes

Versions: 70

Compression:

Stored size: 493 Bytes

Contents

require 'test_helper'

class StringTest < ActiveSupport::TestCase
  def string
    "@resource.something"
  end

  test "String#to_view_code returns the string" do
    assert_equal  string, string.to_view_code
  end

  test "String#inspect works normally when #to_view_code hasn't been called" do
    assert_equal  %Q("#{string}"), string.inspect
  end

  test "String#to_view_code causes subsequent #inspect to remove quotes" do
    assert_equal  string, string.to_view_code.inspect
  end

end

Version data entries

70 entries across 70 versions & 2 rubygems

Version Path
express_templates-0.11.20 test/core_extensions/string_test.rb
express_templates-0.11.20.rc1 test/core_extensions/string_test.rb
express_templates-0.11.19 test/core_extensions/string_test.rb
express_templates-0.11.18 test/core_extensions/string_test.rb
express_templates-0.11.17 test/core_extensions/string_test.rb
express_templates-0.11.16 test/core_extensions/string_test.rb
express_templates-0.11.16.rc1 test/core_extensions/string_test.rb
express_templates-0.11.15 test/core_extensions/string_test.rb
express_templates-0.11.14 test/core_extensions/string_test.rb
express_templates-0.11.13 test/core_extensions/string_test.rb
express_templates-0.11.11 test/core_extensions/string_test.rb
express_templates-0.11.10 test/core_extensions/string_test.rb
express_templates-0.11.9 test/core_extensions/string_test.rb
express_templates-0.11.8 test/core_extensions/string_test.rb
express_templates-0.11.7 test/core_extensions/string_test.rb
express_templates-0.11.6 test/core_extensions/string_test.rb
express_templates-0.11.5 test/core_extensions/string_test.rb
express_templates-0.11.4 test/core_extensions/string_test.rb
express_admin-1.7.5 vendor/gems/express_templates/test/core_extensions/string_test.rb
express_admin-1.7.4 vendor/gems/express_templates/express_templates/test/core_extensions/string_test.rb