Sha256: f236343de16e7d277ece4e00550797ea203fe1ed5f7739a2d59912120a9ce210
Contents?: true
Size: 822 Bytes
Versions: 2
Compression:
Stored size: 822 Bytes
Contents
# coding: UTF-8 require 'spec_helper' class Snipp::Markup::Html::Spec DEFAULT_SCOPE = [:default, :meta] PAGE_SCOPE = [:views, :snipp, :html, :meta] META = [ { id: "TDK", title: I18n.t(:title, scope: PAGE_SCOPE, value: "Embedding Values"), description: I18n.t(:description, scope: DEFAULT_SCOPE), keywords: I18n.t(:keywords, scope: DEFAULT_SCOPE) } ] end describe Snipp::Markup::Html do before do Snipp::Hooks.init visit "/html" end describe "HTML Meta Tags" do Snipp::Markup::Html::Spec::META.each do |e| id = e.delete(:id) context id do e.each do |key, value| it "should have a `#{key}` tag" do expect(page).to have_selector("meta[name=\"#{key}\"][content=\"#{value}\"]", count: 1) end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
snipp-0.1.1 | spec/snipp/markups/html_spec.rb |
snipp-0.1.0 | spec/snipp/markups/html_spec.rb |