Sha256: 3e89e35c85095902759bccba46e9e5aeeebe638fadddd742db656eb256069209

Contents?: true

Size: 417 Bytes

Versions: 3

Compression:

Stored size: 417 Bytes

Contents

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
micropub-server-rails-0.1.8 spec/lib/micropub/homesteading/router_spec.rb
micropub-server-rails-0.1.7 spec/lib/micropub/homesteading/router_spec.rb
micropub-server-rails-0.1.6 spec/lib/micropub/homesteading/router_spec.rb