Sha256: 15a24d4b073f24aed2495c3e89cb8e46699edf2f9ed93271ec86c579b0f2ccec

Contents?: true

Size: 533 Bytes

Versions: 34

Compression:

Stored size: 533 Bytes

Contents

require 'test/helper'

class Admin::PublicHelperTest < ActiveSupport::TestCase

  include Admin::PublicHelper

  def test_quick_edit

    options = { :path => 'articles/edit/1', :message => 'Edit this article' }
    output = quick_edit(options)

    html = <<-HTML
<script type="text/javascript">
  document.write('<script type="text/javascript" src="quick_edit?message=Edit+this+article&path=articles%2Fedit%2F1" />');
</script>
    HTML

    assert_equal html, output

  end

  def admin_quick_edit_path
    'quick_edit'
  end

end

Version data entries

34 entries across 34 versions & 2 rubygems

Version Path
fesplugas-typus-0.9.10 test/helpers/admin/public_helper_test.rb
fesplugas-typus-0.9.11 test/helpers/admin/public_helper_test.rb
fesplugas-typus-0.9.12 test/helpers/admin/public_helper_test.rb
fesplugas-typus-0.9.13 test/helpers/admin/public_helper_test.rb
fesplugas-typus-0.9.14 test/helpers/admin/public_helper_test.rb
fesplugas-typus-0.9.15 test/helpers/admin/public_helper_test.rb
fesplugas-typus-0.9.16 test/helpers/admin/public_helper_test.rb
fesplugas-typus-0.9.17 test/helpers/admin/public_helper_test.rb
fesplugas-typus-0.9.7 test/helpers/admin/public_helper_test.rb
fesplugas-typus-0.9.8 test/helpers/admin/public_helper_test.rb
fesplugas-typus-0.9.9 test/helpers/admin/public_helper_test.rb
typus-0.9.39 test/helpers/admin/public_helper_test.rb
typus-0.9.38 test/helpers/admin/public_helper_test.rb
typus-0.9.37 test/helpers/admin/public_helper_test.rb
typus-0.9.36 test/helpers/admin/public_helper_test.rb
typus-0.9.35 test/helpers/admin/public_helper_test.rb
typus-0.9.34 test/helpers/admin/public_helper_test.rb
typus-0.9.33 test/helpers/admin/public_helper_test.rb
typus-0.9.32 test/helpers/admin/public_helper_test.rb
typus-0.9.31 test/helpers/admin/public_helper_test.rb