Commit fca4c1ee568a9429569ba85d65b22dcf5f29704c
1 parent
217b21e3
Exists in
master
and in
29 other branches
ActionItem1227: fixing test
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
test/unit/link_list_block_test.rb
@@ -59,7 +59,7 @@ class LinkListBlockTest < ActiveSupport::TestCase | @@ -59,7 +59,7 @@ class LinkListBlockTest < ActiveSupport::TestCase | ||
59 | 59 | ||
60 | should 'not add link to javascript' do | 60 | should 'not add link to javascript' do |
61 | l = LinkListBlock.new(:links => [{:name => 'link', :address => "javascript:alert('Message test')"}]) | 61 | l = LinkListBlock.new(:links => [{:name => 'link', :address => "javascript:alert('Message test')"}]) |
62 | - assert_no_match /javascript/, l.link_html(l.links.first) | 62 | + assert_no_match /href="javascript/, l.link_html(l.links.first) |
63 | end | 63 | end |
64 | 64 | ||
65 | should 'not add link to onclick' do | 65 | should 'not add link to onclick' do |