Sha256: bb92b171b74e3e39cf30e4343c5590b06cf2074e5acd9a9ac07ca4bd3d85df3d

Contents?: true

Size: 390 Bytes

Versions: 10

Compression:

Stored size: 390 Bytes

Contents

require 'test_helper'

class RenderCanonicalClass < ActionView::TestCase
  test 'simple' do
    assert_equal render_canonical, ''
  end
  
  test '@canonical' do
    @canonical = '@canonical'
    assert_equal render_canonical, '<link rel="canonical" href="@canonical" />'
    ['   ', '', nil].each do |desc|
      @canonical = desc
      assert_equal render_canonical, ''
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
h2ocube_rails_helper-0.0.16 test/render_canonical_test.rb
h2ocube_rails_helper-0.0.15 test/render_canonical_test.rb
h2ocube_rails_helper-0.0.14 test/render_canonical_test.rb
h2ocube_rails_helper-0.0.13 test/render_canonical_test.rb
h2ocube_rails_helper-0.0.12 test/render_canonical_test.rb
h2ocube_rails_helper-0.0.11 test/render_canonical_test.rb
h2ocube_rails_helper-0.0.10 test/render_canonical_test.rb
h2ocube_rails_helper-0.0.9 test/render_canonical_test.rb
h2ocube_rails_helper-0.0.8 test/render_canonical_test.rb
h2ocube_rails_helper-0.0.7 test/render_canonical_test.rb