require "micropub/homesteading/router" describe Micropub::Homesteading::Router do describe "#as" do it "uses the as attr to set as" do router = Micropub::Homesteading::Router.new("as" => "note") expect(router.as).to eq "note" end it "can use h to convert the type" do router = Micropub::Homesteading::Router.new("h" => "entry") expect(router.as).to eq "note" end end end