spec/fetcher/microdata/article_small_spec.rb in fetcher-microdata-0.0.3 vs spec/fetcher/microdata/article_small_spec.rb in fetcher-microdata-0.0.4

- old
+ new

@@ -6,9 +6,15 @@ article = Fetcher::Microdata::ArticleSmall.new @argument, @viewer article._type.should == "http://schema.org/Article/Small" end end + it 'should raise wrong number of argument if the count of arguments is distinct of 2' do + expect { + Fetcher::Microdata::ArticleSmall.new "a", "b", "c" + }.to raise_error + end + it 'should inherit from Fetcher::Microdata' do Fetcher::Microdata::ArticleSmall.superclass.should == Fetcher::Microdata end describe 'attributes' do \ No newline at end of file