Sha256: a5f83ac38f148e88a0765d8d62327c14e4d2488669e2e65e8759236e749e4a21

Contents?: true

Size: 365 Bytes

Versions: 30

Compression:

Stored size: 365 Bytes

Contents

require 'test_helper'

class NimbleshopHelperTest < ActiveRecord::TestCase

  def helper
    Class.new(ActionView::Base) do
      include ::NimbleshopHelper
    end.new
  end

  test "display_address" do
    addr = create :address, address1: "<script>alert('hi')</script>"
    output = helper.display_address(addr)
    refute output.include?('<script>')
  end

end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
nimbleshop_core-0.0.23 test/helpers/nimbleshop_helper_test.rb
nimbleshop_core-0.0.21 test/helpers/nimbleshop_helper_test.rb
nimbleshop_core-0.0.20 test/helpers/nimbleshop_helper_test.rb
nimbleshop_core-0.0.19 test/helpers/nimbleshop_helper_test.rb
nimbleshop_core-0.0.17 test/helpers/nimbleshop_helper_test.rb
nimbleshop_core-0.0.16 test/helpers/nimbleshop_helper_test.rb
nimbleshop_core-0.0.15 test/helpers/nimbleshop_helper_test.rb
nimbleshop_core-0.0.14 test/helpers/nimbleshop_helper_test.rb
nimbleshop_core-0.0.14.rc2 test/helpers/nimbleshop_helper_test.rb
nimbleshop_core-0.0.14.rc1 test/helpers/nimbleshop_helper_test.rb
nimbleshop_core-0.0.13 test/helpers/nimbleshop_helper_test.rb
nimbleshop_core-0.0.12 test/helpers/nimbleshop_helper_test.rb
nimbleshop_core-0.0.11 test/helpers/nimbleshop_helper_test.rb
nimbleshop_core-0.0.10 test/helpers/nimbleshop_helper_test.rb
nimbleshop_core-0.0.9 test/helpers/nimbleshop_helper_test.rb
nimbleshop_core-0.0.8 test/helpers/nimbleshop_helper_test.rb
nimbleshop_core-0.0.7 test/helpers/nimbleshop_helper_test.rb
nimbleshop_core-0.0.5 test/helpers/nimbleshop_helper_test.rb
nimbleshop_core-0.0.4.beta1 test/helpers/nimbleshop_helper_test.rb
nimbleshop_core-0.0.4 test/helpers/nimbleshop_helper_test.rb