Sha256: 59f0cc6c7300a86da2cab45881b0119bb45fccc0c7d790b4204138110c81c710

Contents?: true

Size: 498 Bytes

Versions: 1

Compression:

Stored size: 498 Bytes

Contents

require 'test_helper'

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

  test "open graph" do
    meta title: "Test Title",
         og: {
           image: {
             url: "http://test.com/image.jpg",
             type: "image/png"
           }
         }

    assert_equal %{<title>Test Title</title>\n<meta content="http://test.com/image.jpg" property="og:image:url" />\n<meta content="image/png" property="og:image:type" />},
                 metamagic
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
metamagic-3.0.1 test/open_graph_test.rb