Sha256: 0e299d64d2e7cdb7c8633e4977ca26953ca3586b826a7eebb432a88042946e61
Contents?: true
Size: 809 Bytes
Versions: 2
Compression:
Stored size: 809 Bytes
Contents
require 'test_helper' class RenderKeywordsClass < ActionView::TestCase test 'simple' do assert_equal render_keywords, '<meta name="keywords" content="keywords" />' end test '@keywords' do @keywords = '@keywords' assert_equal render_keywords, '<meta name="keywords" content="@keywords" />' @keywords = ['@keywords', ' ', '', nil] assert_equal render_keywords, '<meta name="keywords" content="@keywords" />' [' ', '', nil].each do |key| @keywords = key assert_equal render_keywords, '' end end test '@item' do @item = Item.new assert_equal render_keywords, '<meta name="keywords" content="item_keywords" />' end end class HelperSettings def self.keywords 'keywords' end end class Item def keywords 'item_keywords' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
h2ocube_rails_helper-0.0.8 | test/render_keywords_test.rb |
h2ocube_rails_helper-0.0.7 | test/render_keywords_test.rb |