Sha256: f8bd490c060932949f9590621dcdbb790222e0f52f8c168ccba8c0e7475042fd
Contents?: true
Size: 638 Bytes
Versions: 5
Compression:
Stored size: 638 Bytes
Contents
require 'spec_helper' describe "Mida helper" do it "should find vocabulary class" do Mida(:BlogPosting).should == Mida::SchemaOrg::BlogPosting Mida("http://schema.org/BlogPosting").should == Mida::SchemaOrg::BlogPosting custom = Mida("http://t.co/BlogPosting") custom.itemtype.source == "http://t.co/BlogPosting" custom.class.should == Mida::Vocabulary::Custom end it "should make Mida::Vocabulary::Custom for extended vocabularies" do extended = Mida(:Blog, :SexJokes) extended.class.should == Mida::Vocabulary::Custom extended.itemtype.source == "http://schema.org/Blog/SexJokes" end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
green_monkey-0.1.4 | spec/mida_spec.rb |
green_monkey-0.1.3 | spec/mida_spec.rb |
green_monkey-0.1.2 | spec/mida_spec.rb |
green_monkey-0.1.1 | spec/mida_spec.rb |
green_monkey-0.1 | spec/mida_spec.rb |