Sha256: c4fd17e633ba109fab288e0f082e2affa6eb8c8dc28f7328a7db0f12999a05d5
Contents?: true
Size: 531 Bytes
Versions: 2
Compression:
Stored size: 531 Bytes
Contents
require 'test_helper' require 'sass' class IconHelperTest < ActionView::TestCase include Wobapphelpers::Helpers::IconHelper test "icon() renders i with class fa" do render plain: icon('search') assert_select 'i.fa.fa-search.fa-fw', 1 assert_select 'i.fa.fa-quark', 0 end Wobapphelpers::Helpers::IconHelper::PREDEFINED_ICONS.each do |key,value| test "icon_#{key} renders i with class fa-#{value}" do render plain: send("icon_#{key}") assert_select "i.fa.fa-#{value}", 1 end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
wobapphelpers-3.1.1 | test/helpers/icon_helper_test.rb |
wobapphelpers-3.1.0 | test/helpers/icon_helper_test.rb |