Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (15 sloc) 547 Bytes
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
Something went wrong with that request. Please try again.