Sha256: e5062ea243bd3c77364ef94209a6d6725155464c6ceef9559921c1127b1413c9
Contents?: true
Size: 1.41 KB
Versions: 3
Compression:
Stored size: 1.41 KB
Contents
require 'spec_helper' describe Fetcher::Microdata::PersonUser do describe '.new' do it 'should set the _type to schema.org/Person/User' do person = Fetcher::Microdata::PersonUser.new @argument person._type.should == "http://schema.org/Person/User" end end it 'should inherit from Fetcher::Microdata' do Fetcher::Microdata::PersonUser.superclass.should == Fetcher::Microdata end describe 'attributes' do before do @argument_stub = {} end it 'should have the attribute additionalType' do Fetcher::Microdata::PersonUser.new(@argument_stub).attributes.should have_key :additionalType end it 'should have the attribute id' do Fetcher::Microdata::PersonUser.new(@argument_stub).attributes.should have_key :id end it 'should have the attribute name' do Fetcher::Microdata::PersonUser.new(@argument_stub).attributes.should have_key :name end it 'should have the attribute dateRegistered' do Fetcher::Microdata::PersonUser.new(@argument_stub).attributes.should have_key :dateRegistered end it 'should have the attribute description' do Fetcher::Microdata::PersonUser.new(@argument_stub).attributes.should have_key :description end it 'should have the attribute url' do Fetcher::Microdata::PersonUser.new(@argument_stub).attributes.should have_key :url end end end
Version data entries
3 entries across 3 versions & 1 rubygems