Sha256: 21175aebf28a5097a657b9e74c8b5a3fc2a1b44fd448d2546d791129d353a9fc

Contents?: true

Size: 502 Bytes

Versions: 9

Compression:

Stored size: 502 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"
           }
         }
    og image: { 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

9 entries across 9 versions & 1 rubygems

Version Path
metamagic-3.1.6 test/open_graph_test.rb
metamagic-3.1.5 test/open_graph_test.rb
metamagic-3.1.4 test/open_graph_test.rb
metamagic-3.1.3 test/open_graph_test.rb
metamagic-3.1.2 test/open_graph_test.rb
metamagic-3.1.1 test/open_graph_test.rb
metamagic-3.1.0 test/open_graph_test.rb
metamagic-3.0.3 test/open_graph_test.rb
metamagic-3.0.2 test/open_graph_test.rb