Sha256: 148b4f000ab367623693d46495ac150684c83adfe54e84ace7baa56b67f52c4c
Contents?: true
Size: 1.98 KB
Versions: 2
Compression:
Stored size: 1.98 KB
Contents
require 'spec_helper' describe Fetcher::Microdata::Review do describe '.new' do it 'should set the _type to schema.org/Review' do article = Fetcher::Microdata::Review.new @argument, @viewer article._type.should == "http://schema.org/Review" end end it 'should inherit from Fetcher::Microdata' do Fetcher::Microdata::Review.superclass.should == Fetcher::Microdata end describe 'attributes' do before do Fetcher::Microdata::Review.any_instance.stub :coerce end it 'should set attribute additionalType' do Fetcher::Microdata::Review.new(@argument_stub, @viewer_stub) .attributes.should have_key :additionalType end it 'should set attribute id' do Fetcher::Microdata::Review.new(@argument_stub, @viewer_stub) .attributes.should have_key :id end it 'should set attribute articleBody' do Fetcher::Microdata::Review.new(@argument_stub, @viewer_stub) .attributes.should have_key :articleBody end it 'should set attribute author' do Fetcher::Microdata::Review.new(@argument_stub, @viewer_stub) .attributes.should have_key :author end it 'should set attribute viewer' do Fetcher::Microdata::Review.new(@argument_stub, @viewer_stub) .attributes.should have_key :viewer end it 'should set attribute dateCreated' do Fetcher::Microdata::Review.new(@argument_stub, @viewer_stub) .attributes.should have_key :dateCreated end it 'should set attribute provider' do Fetcher::Microdata::Review.new(@argument_stub, @viewer_stub) .attributes.should have_key :provider end it 'should set attribute url' do Fetcher::Microdata::Review.new(@argument_stub, @viewer_stub) .attributes.should have_key :url end it 'should set attribute original_tweet' do Fetcher::Microdata::Review.new(@argument_stub, @viewer_stub) .attributes.should have_key :original_tweet end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fetcher-microdata-0.0.3 | spec/fetcher/microdata/review_spec.rb |
fetcher-microdata-0.0.2 | spec/fetcher/microdata/review_spec.rb |