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