Sha256: f850b10ca4ef1de7df70bfff00117a6d490b4c70f19db0ce187e224164ce2727

Contents?: true

Size: 835 Bytes

Versions: 3

Compression:

Stored size: 835 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

module Gluttonberg
  describe Public do
    before :all do
      Gluttonberg::Setting.generate_common_settings
    end

    after :all do
      clean_all_data
    end

    it "keywords tag" do
      Setting.update_settings("keywords" => "website, keywords")
      helper.keywords_meta_tag.should eql("<meta content=\"website, keywords\" name=\"keywords\" />")
      Setting.update_settings("keywords" => nil)
      helper.keywords_meta_tag.should be_nil
    end

    it "description tag" do
      Setting.update_settings("description" => "website description")
      helper.description_meta_tag.should eql("<meta content=\"website description\" name=\"description\" />")
      Setting.update_settings("description" => nil)
      helper.description_meta_tag.should be_nil
    end    
  end 
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gluttonberg-core-3.0.2 spec/helpers/public/meta_tags_spec.rb
gluttonberg-core-3.0.1 spec/helpers/public/meta_tags_spec.rb
gluttonberg-core-3.0.0 spec/helpers/public/meta_tags_spec.rb