Sha256: e9a8d67821093f24ccb322ea9ec7c1d1df19dac4d4ba09690317a20208a1b5b2
Contents?: true
Size: 497 Bytes
Versions: 7
Compression:
Stored size: 497 Bytes
Contents
require 'test/helper' class Admin::PublicHelperTest < ActiveSupport::TestCase include Admin::PublicHelper def test_quick_edit options = { :color => 'CC0000', :link => 'quick_edit', :resource => 'posts', :id => '1', :action => 'edit' } output = quick_edit(options) html = <<-HTML <script type="text/javascript"> document.write('<script type="text/javascript" src="quick_edit?action=edit&id=1&resource=posts" />'); </script> HTML assert_equal html, output end end
Version data entries
7 entries across 7 versions & 1 rubygems