Sha256: d2f786ae79a5237cea47fe64f455e58f7d2a03ed56e593191abffeb70d8b6a02

Contents?: true

Size: 303 Bytes

Versions: 4

Compression:

Stored size: 303 Bytes

Contents

require 'spec_helper'

describe 'XmlSitemap::Item' do
  describe '#new' do
    it 'raises ArgumentError if invalid :period value was passed' do
      proc { XmlSitemap::Item.new('hello', :period => :foobar) }.
        should raise_error ArgumentError, "Invalid :period value 'foobar'"
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
xml-sitemap-1.3.3 spec/item_spec.rb
xml-sitemap-1.3.2 spec/item_spec.rb
xml-sitemap-1.3.1 spec/item_spec.rb
xml-sitemap-1.3.0 spec/item_spec.rb