Sha256: 27f5cfd94f3bd4082099abb1acacede663a8882a280d7da2a4b9ae0bbc7fdf58

Contents?: true

Size: 426 Bytes

Versions: 1

Compression:

Stored size: 426 Bytes

Contents

require 'test_helper'

class TwitterTest < ActionView::TestCase
  include Metamagic::ViewHelper

  test "twitter cards" do
    meta title: "Test Title",
         twitter: {
           card: :summary,
           site: "@flickr"
         }

    assert_equal %{<title>Test Title</title>\n<meta content="summary" property="twitter:card" />\n<meta content="@flickr" property="twitter:site" />},
                 metamagic
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
metamagic-3.0.1 test/twitter_test.rb