[Git][noosfero/noosfero][master] removing useless test for LinkListBlock
Joenio Costa
gitlab at mg.gitlab.com
Mon May 16 18:45:09 BRT 2016
Joenio Costa pushed to branch master at Noosfero / noosfero
Commits:
3f8c863c by Joenio Costa at 2016-05-16T18:42:32-03:00
removing useless test for LinkListBlock
this fixes test broken by the commit db91ca
- - - - -
1 changed file:
- test/unit/link_list_block_test.rb
Changes:
=====================================
test/unit/link_list_block_test.rb
=====================================
--- a/test/unit/link_list_block_test.rb
+++ b/test/unit/link_list_block_test.rb
@@ -79,13 +79,6 @@ class LinkListBlockTest < ActiveSupport::TestCase
assert_tag_in_string render_block_content(l), :tag => 'a', :attributes => { :href => '/prefix/bar' }
end
- should 'display options for icons' do
- l = LinkListBlock.new
- l.icons_options.each do |option|
- assert_match(/<span title=\".+\" class=\"icon-.+\" onclick=\"changeIcon\(this, '.+'\)\"><\/span>/, option)
- end
- end
-
should 'link with icon' do
l = LinkListBlock.new(:links => [{:icon => 'save', :name => 'test', :address => 'test.com'}])
assert_match /a class="icon-[^"]+"/, render_block_content(l)
View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/3f8c863c99b721ebb1a7620f69bca725fddd5365
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20160516/f10b6cc3/attachment-0001.html>
More information about the Noosfero-dev
mailing list