Sha256: 666408e3954207b9a14267aca9ee80986f3b0bfb1a8f75d83c21cc521a3b6b4f
Contents?: true
Size: 547 Bytes
Versions: 5
Compression:
Stored size: 547 Bytes
Contents
require 'spec_helper' describe ActiveModel do it "should check ActiveModel extention" do ActiveRecord::Base.should respond_to(:html_schema_type) end it "should return schema-type on #html_schema_type" do Post.html_schema_type.should == Post.new.html_schema_type end it "should return instance of kind Mida::Vocabulary" do Post.new.html_schema_type.should == Mida::SchemaOrg::BlogPosting end it "should return string on unknown itemtype" do User.html_schema_type.should == "http://example.com/User" end end
Version data entries
5 entries across 5 versions & 1 rubygems